예제 #1
0
 /**
  * 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');
 }
예제 #2
0
 public function __construct(&$xpdo)
 {
     parent::__construct($xpdo);
 }
예제 #3
0
 /**
  * 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);
 }
예제 #5
0
 /**
  * Override to provide calculated fields
  */
 public function __construct(xPDO &$xpdo)
 {
     parent::__construct($xpdo);
     $this->_fields['calculated_price'] = $this->get('calculated_price');
 }