/**
  * Initializes the options for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param   object  An optional KConfig object with configuration options
  * @return  void
  */
 protected function _initialize(KConfig $config)
 {
     $name = $this->_identifier->name;
     $config->append(array('width' => '640', 'height' => '480'));
     parent::_initialize($config);
 }
Example #2
0
 public function __construct(KConfig $options)
 {
     $options->option = !empty($options->option) ? $options->option : KRequest::get('get.option', 'cmd');
     parent::__construct($options);
 }