Beispiel #1
0
 /**
  * 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)
 {
     $config->append(array(
         'event_dispatcher' => new KEventDispatcher(),
     ));
     
     parent::_initialize($config);
 }
Beispiel #2
0
	/**
     * 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)
    {
    	$config->append(array(
    		'command_chain'		=> null,
    		'command_priority'	=> KCommand::PRIORITY_HIGH
    	));
    	
    	parent::_initialize($config);
    }
Beispiel #3
0
	/**
     * 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)
    {
    	$config->append(array(
			'priority'   => KCommand::PRIORITY_NORMAL,
    	    'auto_mixin' => false
	  	));
	  	
    	parent::_initialize($config);
   	}
Beispiel #4
0
	protected function _initialize(KConfig $config)
	{
		if (empty($config->adapters)) {
			$config->adapters = array('finfo', 'mime_content_type', 'mimemagic');
		}
		elseif (is_string($config->adapters)) {
			$config->adapters = array($config->adapters);
		}

		parent::_initialize($config);
	}
Beispiel #5
0
 /**
  * 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)
 {
     $config->append(array(
         'command_chain'     => new KCommandChain(),
         'event'				=> KFactory::get('koowa:command.event'),
         'dispatch_events'   => true,
         'event_priority'    => KCommand::PRIORITY_LOWEST,
         'enable_callbacks'  => false,
         'callback_priority' => KCommand::PRIORITY_HIGH,
     ));
     
     parent::_initialize($config);
 }
Beispiel #6
0
 /**
  * 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)
 {
     $config->append(array('event_dispatcher' => null, 'event_subscribers' => array(), 'event_listeners' => array()));
     parent::_initialize($config);
 }
Beispiel #7
0
 /**
  * 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)
 {
     $config->append(array('command_chain' => null, 'event_dispatcher' => null, 'dispatch_events' => true, 'event_priority' => KCommand::PRIORITY_LOWEST, 'enable_callbacks' => false, 'callback_priority' => KCommand::PRIORITY_HIGH));
     parent::_initialize($config);
 }
Beispiel #8
0
 /**
  * Initializes the options for the object
  * 
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param   array   Options
  * @return  array   Options
  */
 protected function _initialize(KConfig $options)
 {
     $options->append(array('views' => array()));
     parent::_initialize($options);
 }
Beispiel #9
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)
 {
     parent::_initialize($config);
     $config->append(array('toolbars' => array()));
 }
Beispiel #10
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)
 {
     parent::_initialize($config);
     $config->append(array('behaviors' => array(), 'auto_mixin' => true));
 }