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);
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct();
     $this->key = uniqid('cli_');
     $template = OW::getPluginManager()->getPlugin('base')->getCmpViewDir() . 'console_list_item.html';
     $this->setTemplate($template);
 }
Exemple #3
0
 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');
 }
Exemple #4
0
 /**
  * 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');
     }
 }
Exemple #5
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     // echo "call mastere";
     parent::__construct();
     $this->init();
 }
Exemple #6
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->init();
 }