/** * Ye olde Calculated fields (aka Accessors) */ public function __construct(xPDO &$xpdo) { parent::__construct($xpdo); self::$x = $xpdo; $this->_fields['url'] = $this->get('url'); $this->_fields['path'] = $this->get('path'); $this->_fields['basename'] = $this->get('basename'); $this->_fields['thumbnail_url'] = $this->get('thumbnail_url'); $this->_fields['thumbnail_width'] = $this->get('thumbnail_width'); $this->_fields['thumbnail_height'] = $this->get('thumbnail_height'); }
public function __construct(&$xpdo) { parent::__construct($xpdo); }
/** * Overrides xPDOObject::__construct to set the _cacheFlag var for this class to false. * * @param xPDO $xpdo Reference to the xPDO|modX instance */ function __construct(&$xpdo) { parent::__construct($xpdo); $this->_cacheFlag = false; }
public function __construct(&$xpdo) { parent::__construct($xpdo); $this->xpdo->loadClass('transport.xPDOTransport', XPDO_CORE_PATH, true, true); }
/** * Override to provide calculated fields */ public function __construct(xPDO &$xpdo) { parent::__construct($xpdo); $this->_fields['calculated_price'] = $this->get('calculated_price'); }