Not a developer? Go to


Setting and retrieving column values

To set the column value of an object, use the name of the column as a method name, and pass in the value for the column:


The return value of the above call will be bar, the value to which you have set the column.

To retrieve the existing value of a column, call the same method, but without an argument:


This returns the value of the foo column from the $foo object.


This method is used to initialize the object upon construction.


This method is used by the init method to set the object defaults.