本文整理汇总了PHP中ContentElement::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ContentElement::__construct方法的具体用法?PHP ContentElement::__construct怎么用?PHP ContentElement::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ContentElement
的用法示例。
在下文中一共展示了ContentElement::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Initialize the object
* @param object
* @param string
*/
public function __construct($objElement, $strColumn = 'main')
{
parent::__construct($objElement, $strColumn);
if ($this->customTpl != '') {
$this->strTemplate = $this->customTpl;
}
}
示例2: __construct
/**
* @param $objElement
* @param string $strColumn
*/
public function __construct($objElement, $strColumn = 'main')
{
parent::__construct($objElement, $strColumn);
$this->arrData = new Attributes($this->arrData);
$this->arrData->registerNamespaceAttributes($this->arrBootstrapAttributes);
$this->cssDefinitioin = $this->cssID;
}
示例3: __construct
public function __construct($rowDefintion)
{
parent::__construct($rowDefintion);
foreach ($rowDefintion['data'] as $cellDefintion) {
$this->data[] = new Cell($cellDefintion);
}
}
示例4: __construct
/**
* {@inheritDoc}
*/
public function __construct($objElement, $strColumn = 'main')
{
parent::__construct($objElement, $strColumn);
try {
/** @var Registry $registry */
$registry = $this->getServiceContainer()->getService('content-nodes.registry');
$this->node = $registry->getNode($this->type);
} catch (\Exception $e) {
$this->log(sprintf($e->getMessage(), $this->type), __METHOD__, TL_ERROR);
}
}
示例5: __construct
/**
* Initialize the content element
* @param object
*/
public function __construct(Database_Result $objElement)
{
parent::__construct($objElement);
if (TL_MODE == 'FE') {
$this->import('Isotope');
if (FE_USER_LOGGED_IN === true) {
$this->import('FrontendUser', 'User');
}
// Load Isotope javascript and css
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/isotope/html/isotope.js';
$GLOBALS['TL_CSS'][] = 'system/modules/isotope/html/isotope.css';
}
}
示例6: __construct
/**
* Initialize the object
*
* @param $objElement
*/
public function __construct($objElement)
{
parent::__construct($objElement);
}