Perry wrote a Data Aware Object library. It's vaguely incomplete and buggy. However it needs some documentation, and using the wiki appeared to be the best way to write documentation for it.
Parameters: |Position|name|type|description | 1 | db | Pear::DB class | database to work on | 2 | table | string | name of the table to work on | 3 | description | ordered associative array | see below | 4 | prefs | order associative array | see below
|Position|name|type|description | 1 | has_insert | boolean (defaults to true)| if true, this has an insert row
Display the insert row
|Position|name|type|description | 1 | where | string | where clause to use to limit the display
|Position|name|type|description | 1 | column | string | column name | 2 | value | string | value the column must have
|Position|name|type|description | 1 | ourcolumn | string | the column in the master table | 2 | datasource | !DataSource? | the data source to act as the detail | 3 | theircolumn | string | the column in the detail table that joins to "ourcolumn" in the master table
(internal)
(internal, and probably needs rewriting :)
(internal)
Rebuild the table. Must be called before update for some reason.
(internal)
(internal)
Takes no parameters
Must have build() called first for some reason.
Returns an array of error strings of any problems found, or an empty array if no problems are found
Takes no parameters
Called on update, to be overridden.
Inherits from: !DataSource?
Creates a table out of a !DataSource?
(internal)
Takes no parameters
displays the table. Expects build() to be called first
This is a very incomplete list, it's basically here to document interesting attributes, feel free to add to me!
| name | value | description | dao_modified | boolean | If this row is modified, ignore it for the purposes of figuring out if this row should be inserted.
Input types, and their associated properties
No page links to PhpDaoLib.