|
|
Home Packaging [WORKING] mosDBTable->set |
| [WORKING] mosDBTable->set |
|
|
|
|
Last reviewed: Not reviewed mosDBTable->setSets the value of an object property. This method should be used in preference to directly setting an objects' properties. See also mosDBTable->get. Syntaxvoid set ( string $property, mixed $value )
ExamplesExample: This example uses the myTable class defined on the mosDBTable class overview page. // Declare an instance of the myTable class. $myTbl = new myTable( $database ); // Load record with primary key id=17. $uid = 17; $myTbl->load( $uid ); // Update some fields in the table row. $myTbl->set( 'title', 'The title' ); $myTbl->set( 'published', true ); // Save the updated record. $myTbl->store(); Please report any errors on this page to the Developer Documentation Forum. |
|
| Last Updated ( Monday, 25 December 2006 ) |
| < Prev | Next > |
|---|





