Jump to main content Jump to doc navigation

xPDOObject::load()

This function is responsible for loading a single object instance from a row in the database table represented by a specific class

Syntax

API Doc: http://api.modxcms.com/xpdo/om/xPDOObject.html#load

static object|null load(
   xPDO &$xpdo,
   string $className,
   mixed $criteria,
   [boolean|integer $cacheFlag = true]
)