Пример #1
0
 /**
  * Initializes the default configuration 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)
 {
     $config->append(array(
         'context'         =>  new KCommandContext(),
         'enabled'         =>  true,
         'break_condition' =>  false,
     ));
     
     parent::_initialize($config);
 }
Пример #2
0
 /**
  * Initializes the default configuration 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)
 {
     $config->append(array('stack' => $this->getService('com://admin/docman.object.stack'), 'context' => new KCommandContext(), 'enabled' => true, 'break_condition' => false));
     parent::_initialize($config);
 }