->setFrom()

->setFrom() -- Copy items from Array or Object (for form posting)

Synopsis

boolean $DB_DataObject->setFrom (array or object $from)

Description

Copies items that are in the table definitions from an array or object into the current object (It will not override key values). This can be used to process form posts (if the field names match the database), or cloning similar objects.

Parameter

Return value

boolean - true on success

Note

This function can not be called statically

Example