Esempio n. 1
0
 /**
  * Constructor.
  *
  * @param	string 			The command name
  * @param   array|KConfig 	An associative array of configuration settings or a KConfig instance.
  */
 public function __construct($name, $config = array())
 {
     parent::__construct($config);
     $this->append(array('icon' => 'icon-32-' . $name, 'id' => $name, 'label' => ucfirst($name), 'disabled' => false, 'title' => '', 'attribs' => array('class' => array())));
     //Set the command name
     $this->_name = $name;
 }
Esempio n. 2
0
 /**
  * Constructor.
  *
  * @param	string 			The event name
  * @param   array|KConfig 	An associative array of configuration settings or a KConfig instance.
  */
 public function __construct( $name, $config = array() )
 { 
     parent::__construct($config);
      
     //Set the command name
     $this->_name = $name;
 } 
Esempio n. 3
0
 /**
  * Constructor.
  *
  * @param 	object 	An optional KConfig object with configuration options
  */
 public function __construct($text, $config)
 {
     $this->_text = pick($text, '');
     parent::__construct($config);
 }