Not a developer? Go to MovableType.com

Documentation

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:

$foo->foo('bar');

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:

$foo->foo

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

$obj->init()

This method is used to initialize the object upon construction.

$obj->set_defaults()

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

Back

Leave a Comment