/** * Initialize the object * @param object * @param string */ public function __construct($objElement, $strColumn = 'main') { parent::__construct($objElement, $strColumn); if ($this->customTpl != '') { $this->strTemplate = $this->customTpl; } }
/** * @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; }
public function __construct($rowDefintion) { parent::__construct($rowDefintion); foreach ($rowDefintion['data'] as $cellDefintion) { $this->data[] = new Cell($cellDefintion); } }
/** * {@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); } }
/** * 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'; } }
/** * Initialize the object * * @param $objElement */ public function __construct($objElement) { parent::__construct($objElement); }