Exemple #1
0
 function __construct($iblock_id, $section_id)
 {
     $entity = new SectionValues($iblock_id, $section_id);
     parent::__construct($entity);
 }
Exemple #2
0
 /**
  * Create a new template object
  *
  * @param string $strTemplate    The template name
  * @param string $strContentType The content type (defaults to "text/html")
  */
 public function __construct($strTemplate = '', $strContentType = 'text/html')
 {
     parent::__construct();
     $this->strTemplate = $strTemplate;
     $this->strContentType = $strContentType;
 }
 function __construct()
 {
     global $wgHooks;
     parent::__construct();
     $wgHooks['BeforeTabsLine'][] = array('WikihowLogin::topContent', $this, 'create');
 }
Exemple #4
0
 /**
  * Initialize the object
  *
  * @param array $arrAttributes An optional attributes array
  */
 public function __construct($arrAttributes = null)
 {
     parent::__construct();
     // Override the output format in the front end
     if (TL_MODE == 'FE') {
         /** @var \PageModel $objPage */
         global $objPage;
         if ($objPage->outputFormat != '') {
             $this->strFormat = $objPage->outputFormat;
             $this->strTagEnding = $this->strFormat == 'xhtml' ? ' />' : '>';
         }
     }
     $this->addAttributes($arrAttributes);
 }
 /**
  * @param integer $iblockId Identifier of the iblock.
  */
 function __construct($iblockId)
 {
     $entity = new IblockValues($iblockId);
     parent::__construct($entity);
 }