public function __construct($label) { parent::__construct(); $template = OW::getPluginManager()->getPlugin('base')->getCmpViewDir() . 'console_dropdown_menu.html'; $this->setTemplate($template); $this->consoleItem = new BASE_CMP_ConsoleDropdownHover($label); }
public function __construct() { parent::__construct(); $this->key = uniqid('cli_'); $template = OW::getPluginManager()->getPlugin('base')->getCmpViewDir() . 'console_list_item.html'; $this->setTemplate($template); }
public function __construct($label, $key = null) { parent::__construct(); $this->consoleItem = new BASE_CMP_ConsoleItem(); $this->assign('label', $label); $this->key = empty($key) ? $this->consoleItem->getUniqId() : $key; $this->addClass('ow_console_dropdown'); }
/** * Constructor. * * @param string $template */ public function __construct($template = null) { parent::__construct(); // TODO remove everthing from constructor try { $plugin = OW::getPluginManager()->getPlugin(OW::getAutoloader()->getPluginKey(get_class($this))); } catch (InvalidArgumentException $e) { $plugin = null; } if ($template !== null && $plugin !== null) { $this->setTemplate($plugin->getCmpViewDir() . $template . '.html'); } }
/** * Constructor. */ public function __construct() { // echo "call mastere"; parent::__construct(); $this->init(); }
/** * Constructor. */ public function __construct() { parent::__construct(); $this->init(); }