Documentation Menu

1.5 Template Project

The Joomla! Documentation Working Group is running a project to develop detailed reference and tutorial material on Joomla! 1.5 templates.  There is a project page on the documentation wiki where you can see the work in progress and help us by contributing your knowledge.

Who's Online

We have 8 guests online

Help Site License

The Joomla! Help Site content is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution NonCommercial ShareAlike 2.5. Some parts of this website may be subject to other licenses.
Home arrow Manual arrow 11. API Reference arrow [WORKING] mosDBTable->set

[WORKING] mosDBTable->set PDF Print E-mail

Last reviewed: Not reviewed


Sets the value of an object property. This method should be used in preference to directly setting an objects' properties. See also mosDBTable->get.


void set ( string $property, mixed $value )

is the name of the object property.
is the new value to be given to the object property.


Example: 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.

Please report any errors on this page to the Developer Documentation Forum.

Last Updated ( Monday, 25 December 2006 )
< Prev   Next >