本文整理汇总了PHP中xPDOObject::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP xPDOObject::__construct方法的具体用法?PHP xPDOObject::__construct怎么用?PHP xPDOObject::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xPDOObject
的用法示例。
在下文中一共展示了xPDOObject::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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: __construct
public function __construct(&$xpdo)
{
parent::__construct($xpdo);
}
示例3:
/**
* 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;
}
示例4: __construct
public function __construct(&$xpdo)
{
parent::__construct($xpdo);
$this->xpdo->loadClass('transport.xPDOTransport', XPDO_CORE_PATH, true, true);
}
示例5: __construct
/**
* Override to provide calculated fields
*/
public function __construct(xPDO &$xpdo)
{
parent::__construct($xpdo);
$this->_fields['calculated_price'] = $this->get('calculated_price');
}