本文整理匯總了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);
}