setOption

xPDOObject::setOption()

Sets an option value for this instance of an xPDOObject.

Syntax

API Docs: http://api.modxcms.com/xpdo/om/xPDOObject.html#setOption

void setOption(
    string $key,
    mixed $value
)

Example

$object->setOption(xPDO::OPT_HYDRATE_FIELDS,true);

Suggest an edit to this page.