__construct
Last updated not available | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn morexPDOObject::__construct¶
Initialises the object. The constructor is intended to be called by xPDO when hydrating objects, not directly by application code. Derived classes must call parent::__construct($xpdo).
During construction the object's related-object containers are initialised according to the cardinality of its aggregate and composite relationships.
Syntax¶
__construct (xPDO &$xpdo)
Example¶
class MyObject extends \xPDO\Om\xPDOObject
{
public function __construct(xPDO &$xpdo)
{
parent::__construct($xpdo);
}
}
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










