<feed xmlns='http://www.w3.org/2005/Atom'>
<title>scrott/app/class/table.class.php, branch v0.5</title>
<subtitle>The Secure Centralized Robust Online Ticketing Tool</subtitle>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/'/>
<entry>
<title>table:  Fix bug in constructor</title>
<updated>2018-09-20T04:09:08+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2018-09-20T04:09:08+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=1daec62c0ab6590d3a30464b2f679baea3ca3936'/>
<id>1daec62c0ab6590d3a30464b2f679baea3ca3936</id>
<content type='text'>
This particular flaw was dampening (and could popentially be hiding) the
effects of other bugs.

For instance, in this case, a GUID of "" was invalidly being used to
construct an object.  This should obviously be considered an error, but
since "" evaluates to false, the construction was treated as default (no
GUID) construction and succedded.  It wasn't until later when missing
properties were accessed that random PHP error messages clued me into what
was happening.

Now, when any sort of explicit value is used to construct an object (not
NULL), an object load will be attempted, giving bad input more chances
to fail outright and trigger an exception.  In addition, the 'no such
guid' exception message is updated to place quotes ('') around the GUID
string to make it more obvious when "" is used in the future.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This particular flaw was dampening (and could popentially be hiding) the
effects of other bugs.

For instance, in this case, a GUID of "" was invalidly being used to
construct an object.  This should obviously be considered an error, but
since "" evaluates to false, the construction was treated as default (no
GUID) construction and succedded.  It wasn't until later when missing
properties were accessed that random PHP error messages clued me into what
was happening.

Now, when any sort of explicit value is used to construct an object (not
NULL), an object load will be attempted, giving bad input more chances
to fail outright and trigger an exception.  In addition, the 'no such
guid' exception message is updated to place quotes ('') around the GUID
string to make it more obvious when "" is used in the future.
</pre>
</div>
</content>
</entry>
<entry>
<title>table:  Change function visibilities to public</title>
<updated>2018-09-19T21:49:34+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2018-09-19T21:49:34+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=e90ec83ac5f9327dcf055174002723b48948a679'/>
<id>e90ec83ac5f9327dcf055174002723b48948a679</id>
<content type='text'>
These two functions, 'getCurrentTimestamp()' and 'isGUID()' are updated
to be public.  There is actually no good reason for them to be private;
I originally just never antisipated their use outside this class.

I need isGUID() in index.php to help with page routing.  Neither of
these two functions have side effects of any kind nor any unexpected
behavior, so there is no harm in going public.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These two functions, 'getCurrentTimestamp()' and 'isGUID()' are updated
to be public.  There is actually no good reason for them to be private;
I originally just never antisipated their use outside this class.

I need isGUID() in index.php to help with page routing.  Neither of
these two functions have side effects of any kind nor any unexpected
behavior, so there is no harm in going public.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug in function table-&gt;loadObj()</title>
<updated>2018-09-07T11:02:18+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2018-09-07T11:02:18+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=575d532b06eeae5eac77f231265e8fd7034d4fd7'/>
<id>575d532b06eeae5eac77f231265e8fd7034d4fd7</id>
<content type='text'>
If a table query yeilds zero rows, we would still attempt to load the
first (index zero) into $this, causing an error to be thrown by PHP.  We
are now checking the size of the results array first.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a table query yeilds zero rows, we would still attempt to load the
first (index zero) into $this, causing an error to be thrown by PHP.  We
are now checking the size of the results array first.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug in table function saveObj()</title>
<updated>2017-04-15T01:01:27+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2017-04-15T00:50:24+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=453a2fc20886fa25b94017c1cccdbd05456a2d60'/>
<id>453a2fc20886fa25b94017c1cccdbd05456a2d60</id>
<content type='text'>
Added call to refreshObj() to the end of function saveObj() to fetch all
default values defined by the database, not set on the object in PHP.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added call to refreshObj() to the end of function saveObj() to fetch all
default values defined by the database, not set on the object in PHP.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Fix bug in table function saveObj()"</title>
<updated>2017-04-15T01:01:10+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2017-04-15T01:01:10+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=025a34dbd54a0886d766f386792310e5f6bfe701'/>
<id>025a34dbd54a0886d766f386792310e5f6bfe701</id>
<content type='text'>
This reverts commit e7228676ce51bf69cc974fc0bd8f8135c51fd036.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit e7228676ce51bf69cc974fc0bd8f8135c51fd036.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug in table function saveObj()</title>
<updated>2017-04-14T03:23:56+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2017-04-14T03:23:56+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=e7228676ce51bf69cc974fc0bd8f8135c51fd036'/>
<id>e7228676ce51bf69cc974fc0bd8f8135c51fd036</id>
<content type='text'>
While creating new objects, some default values (defined in the database
schema) are missing in the PHP object definition.  To address this, now
while saving any *new* database objects, all undefined, expected fields
are set to the empty string "".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While creating new objects, some default values (defined in the database
schema) are missing in the PHP object definition.  To address this, now
while saving any *new* database objects, all undefined, expected fields
are set to the empty string "".
</pre>
</div>
</content>
</entry>
<entry>
<title>Add table function refreshObj()</title>
<updated>2017-04-14T01:05:56+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2017-04-14T01:05:56+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=602921ebd65b8a46190bbcf1eb7a83c409f2c926'/>
<id>602921ebd65b8a46190bbcf1eb7a83c409f2c926</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add function expectType() to table class</title>
<updated>2017-02-07T05:20:03+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2017-02-07T05:20:03+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=f8db4aae02465dabaf7907f5e821414eeeea14bf'/>
<id>f8db4aae02465dabaf7907f5e821414eeeea14bf</id>
<content type='text'>
protected function exceptType added for use by subclasses to assert that
the database object loaded is the correct type and to protect against
cases like EG: passing the GUID for a group to new user(...);  If a
problem is detected, throw an exception.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
protected function exceptType added for use by subclasses to assert that
the database object loaded is the correct type and to protect against
cases like EG: passing the GUID for a group to new user(...);  If a
problem is detected, throw an exception.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update function signatures for table class</title>
<updated>2017-02-06T07:28:20+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2017-02-06T07:28:20+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=861c98387001f99fe0e178d8202d2c3ec40538f0'/>
<id>861c98387001f99fe0e178d8202d2c3ec40538f0</id>
<content type='text'>
Various function (and their usages) in the table class have been updated
to be static class function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Various function (and their usages) in the table class have been updated
to be static class function.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update table class tree to use static database references</title>
<updated>2017-02-06T06:18:10+00:00</updated>
<author>
<name>Malf Furious</name>
<email>m@lfurio.us</email>
</author>
<published>2017-02-06T06:18:10+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/scrott/commit/?id=476192ca8fa2053af74a7e7f5e4006c83c8d0cad'/>
<id>476192ca8fa2053af74a7e7f5e4006c83c8d0cad</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
