|
Andrew's Web Libraries (AWL) 0.64
|

Public Member Functions | |
| __construct () | |
| Initialise ( $table, $keys=array()) | |
| AddTable ( $table, $target_list, $join_clause, $and_where) | |
| PostToValues ( $prefix="") | |
| _BuildJoinClause () | |
| _BuildFieldList () | |
| _BuildWhereClause ($overwrite_values=false) | |
| Set ($fname, $fval) | |
| Get ($fname) | |
| Undefine ($fname) | |
| Write () | |
| Read () | |
Public Attributes | |
| $Table | |
| $Fields | |
| $Keys | |
| $Values | |
| $WriteType | |
| $OtherTable | |
| $OtherTargets | |
| $OtherJoin | |
| $OtherWhere | |
| $EditMode | |
Definition at line 122 of file DataUpdate.php.
| DBRecord::__construct | ( | ) |
#- Really numbingly simple construction.
Definition at line 202 of file DataUpdate.php.
| DBRecord::_BuildFieldList | ( | ) |
Builds a field target list
Definition at line 274 of file DataUpdate.php.
| DBRecord::_BuildJoinClause | ( | ) |
Builds a table join clause
Definition at line 259 of file DataUpdate.php.
| DBRecord::_BuildWhereClause | ( | $overwrite_values = false | ) |
Builds a where clause to match the supplied keys
| boolean | $overwrite_values | Controls whether the data values for the key fields will be forced to match the key values |
Definition at line 295 of file DataUpdate.php.
| DBRecord::AddTable | ( | $table, | |
| $target_list, | |||
| $join_clause, | |||
| $and_where ) |
This will join an additional table to the maintained set
| string | $table | The name of the database table |
| array | $keys | An associative array containing fieldname => value pairs for the record key. |
| string | $join | A PostgreSQL join clause. |
| string | $prefix | A field prefix to use for these fields to distinguish them from fields in other joined tables with the same name. |
Definition at line 233 of file DataUpdate.php.
| DBRecord::Get | ( | $fname | ) |
Returns a single field from the record
| string | $fname | The name of the field to set the value for |
Definition at line 333 of file DataUpdate.php.
| DBRecord::Initialise | ( | $table, | |
| $keys = array() ) |
This will read the record from the database if it's available, and the $keys parameter is a non-empty array.
| string | $table | The name of the database table |
| array | $keys | An associative array containing fieldname => value pairs for the record key. |
Definition at line 217 of file DataUpdate.php.
| DBRecord::PostToValues | ( | $prefix = "" | ) |
This will assign $_POST values to the internal Values object for each field that exists in the Fields array.
Definition at line 245 of file DataUpdate.php.
| DBRecord::Read | ( | ) |
To read the record from the database. If we don't have any keys then the record will be blank.
Definition at line 367 of file DataUpdate.php.
| DBRecord::Set | ( | $fname, | |
| $fval ) |
Sets a single field in the record
| string | $fname | The name of the field to set the value for |
| string | $fval | The value to set the field to |
Definition at line 322 of file DataUpdate.php.
| DBRecord::Undefine | ( | $fname | ) |
Unsets a single field from the record
| string | $fname | The name of the field to unset the value for |
Definition at line 343 of file DataUpdate.php.
| DBRecord::Write | ( | ) |
To write the record to the database
Reimplemented in User.
Definition at line 355 of file DataUpdate.php.
| DBRecord::$EditMode |
Definition at line 195 of file DataUpdate.php.
| DBRecord::$Fields |
Definition at line 138 of file DataUpdate.php.
| DBRecord::$Keys |
Definition at line 144 of file DataUpdate.php.
| DBRecord::$OtherJoin |
Definition at line 177 of file DataUpdate.php.
| DBRecord::$OtherTable |
Definition at line 162 of file DataUpdate.php.
| DBRecord::$OtherTargets |
Definition at line 170 of file DataUpdate.php.
| DBRecord::$OtherWhere |
Definition at line 184 of file DataUpdate.php.
| DBRecord::$Table |
Definition at line 131 of file DataUpdate.php.
| DBRecord::$Values |
Definition at line 150 of file DataUpdate.php.
| DBRecord::$WriteType |
Definition at line 156 of file DataUpdate.php.