<feed xmlns='http://www.w3.org/2005/Atom'>
<title>scrott/app/class/form.class.php, branch v0.4</title>
<subtitle>The Secure Centralized Robust Online Ticketing Tool</subtitle>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/'/>
<entry>
<title>form:  Fix bug in populate()</title>
<updated>2018-09-24T02:05:39+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2018-09-24T02:05:39+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=fd58becfca433f125df70531f9bece88c8f14b71'/>
<id>fd58becfca433f125df70531f9bece88c8f14b71</id>
<content type='text'>
There was a problem with processing enum type fields.  The way all other
field types are asserted to be 'defined' is via:

        isset($field) &amp;&amp; $field != ""

Which works perfectly fine, and is exactly what we want.  However, with
enums the second part of that &amp;&amp; can bite us if "" is in the list of
acceptable values.

This commit removed that half of the check (only for enum values) so
that the empty string may be an acceptable enum value.  If "" is not in
the values array, then the check is implicitly reinstated.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There was a problem with processing enum type fields.  The way all other
field types are asserted to be 'defined' is via:

        isset($field) &amp;&amp; $field != ""

Which works perfectly fine, and is exactly what we want.  However, with
enums the second part of that &amp;&amp; can bite us if "" is in the list of
acceptable values.

This commit removed that half of the check (only for enum values) so
that the empty string may be an acceptable enum value.  If "" is not in
the values array, then the check is implicitly reinstated.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add form class</title>
<updated>2017-06-27T05:35:26+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2017-06-27T05:35:26+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=4a9908d9aa3d0f50d4907eb25e6fc1d317061484'/>
<id>4a9908d9aa3d0f50d4907eb25e6fc1d317061484</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecate application code</title>
<updated>2016-10-22T04:29:30+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2016-10-22T04:29:30+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=ed99654d2e139a847a63e9295bf976d17462ee34'/>
<id>ed99654d2e139a847a63e9295bf976d17462ee34</id>
<content type='text'>
Setup to perform an iteration of development focused on a simpler
implementation and eliminating redundancy in design.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Setup to perform an iteration of development focused on a simpler
implementation and eliminating redundancy in design.
</pre>
</div>
</content>
</entry>
<entry>
<title>Changes to the handling of indirect variables, properties, and methods</title>
<updated>2016-09-14T00:34:15+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2016-09-14T00:34:15+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=63e56817123810e93a3d5cd0e13a70b8c47cacc5'/>
<id>63e56817123810e93a3d5cd0e13a70b8c47cacc5</id>
<content type='text'>
To maintain forward compatability with newer versions of PHP (and since
my dev environment is now running PHP 7), this patch is made to address
the following breaking change from PHP 5:

PHP 7 now uses an abstract syntax tree when parsing source files. This
has permitted many improvements to the language which were previously
impossible due to limitations in the parser used in earlier versions of
PHP, but has resulted in the removal of a few special cases for
consistency reasons, which has resulted in backward compatibility
breaks. Indirect access to variables, properties, and methods will now
be evaluated strictly in left-to-right order, as opposed to the previous
mix of special cases.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To maintain forward compatability with newer versions of PHP (and since
my dev environment is now running PHP 7), this patch is made to address
the following breaking change from PHP 5:

PHP 7 now uses an abstract syntax tree when parsing source files. This
has permitted many improvements to the language which were previously
impossible due to limitations in the parser used in earlier versions of
PHP, but has resulted in the removal of a few special cases for
consistency reasons, which has resulted in backward compatibility
breaks. Indirect access to variables, properties, and methods will now
be evaluated strictly in left-to-right order, as opposed to the previous
mix of special cases.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add copyright notice to Scrott class files</title>
<updated>2016-05-27T03:46:22+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2016-05-27T03:46:22+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=ec7186ed4e1c2a41ff9052cdd1624b8cabbb047c'/>
<id>ec7186ed4e1c2a41ff9052cdd1624b8cabbb047c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix to Form::saveFile()</title>
<updated>2016-05-01T05:34:23+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2016-04-30T20:57:11+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=ed2af3a874417b8317bb6def9b40189b1d5d05e8'/>
<id>ed2af3a874417b8317bb6def9b40189b1d5d05e8</id>
<content type='text'>
Only log an error if we get an upload error besides err code 4 (No file
uploaded)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only log an error if we get an upload error besides err code 4 (No file
uploaded)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add function Form::saveFile()</title>
<updated>2016-04-28T02:11:58+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2016-04-28T02:11:58+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=db369507f636f9395604a5cd72fcfe5d99f97166'/>
<id>db369507f636f9395604a5cd72fcfe5d99f97166</id>
<content type='text'>
This is a rework of how the framework handles performing file uploads.
Rather than attaching new fields to a form (of type file) and handling
them during populate() then saving later, users can call what is
essentially a static function and save files in isolation.  Since each
webform I can conceive using in Scrott at this time won't be uploading
more than one file at a time, this model should work nicely moving
forward; however can be easily adjusted if need be.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a rework of how the framework handles performing file uploads.
Rather than attaching new fields to a form (of type file) and handling
them during populate() then saving later, users can call what is
essentially a static function and save files in isolation.  Since each
webform I can conceive using in Scrott at this time won't be uploading
more than one file at a time, this model should work nicely moving
forward; however can be easily adjusted if need be.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Add form field type 'file'"</title>
<updated>2016-04-28T00:47:21+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2016-04-28T00:47:21+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=9458874e8c194b1c5a53bd3e85f9ba7548c9dac4'/>
<id>9458874e8c194b1c5a53bd3e85f9ba7548c9dac4</id>
<content type='text'>
This reverts commit 8ad6e8f9223bd3ee214478b3e1247f9c7d8e91ec.

See parent commit message
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 8ad6e8f9223bd3ee214478b3e1247f9c7d8e91ec.

See parent commit message
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Update function Form::populate() to initialize fields added with Form::field_file()"</title>
<updated>2016-04-28T00:43:35+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2016-04-28T00:43:35+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=caebcb442985496b3bddaa3e7c1a752832e32e0b'/>
<id>caebcb442985496b3bddaa3e7c1a752832e32e0b</id>
<content type='text'>
This reverts commit 1f8b53e426b8c0a1546e9d5c21573be9003cb556.

See parent commit message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 1f8b53e426b8c0a1546e9d5c21573be9003cb556.

See parent commit message.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Add function Form::saveUploadedFile()"</title>
<updated>2016-04-28T00:41:35+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2016-04-28T00:41:35+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=dbf4512ce48c04af4a8332cff3064f29b5690446'/>
<id>dbf4512ce48c04af4a8332cff3064f29b5690446</id>
<content type='text'>
This reverts commit 3d493fc75dc6e3593001c2d9dfef26f4c1d79c2c.

The way I was wanting to handle file uploads isn't going to fly with a
semantic of PHP and POST var mgmt. -.-  Rolling back relevant changes to
write up something else.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 3d493fc75dc6e3593001c2d9dfef26f4c1d79c2c.

The way I was wanting to handle file uploads isn't going to fly with a
semantic of PHP and POST var mgmt. -.-  Rolling back relevant changes to
write up something else.
</pre>
</div>
</content>
</entry>
</feed>
