/** * 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( 'controller' => $this->_identifier->package, 'request' => KRequest::get('get', 'string'), ))->append(array( 'request' => array('format' => KRequest::format() ? KRequest::format() : 'html') )); parent::_initialize($config); }
/** * 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('controller' => null, 'controller_default' => $this->_identifier->package, 'request' => KRequest::get('get', 'string'), 'request_persistent' => false)); parent::_initialize($config); }
/** * 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('model' => $this->getIdentifier()->name, 'behaviors' => array('executable', 'commandable'), 'readonly' => true, 'request' => array('format' => 'html')))->append(array('view' => $config->request->view ? $config->request->view : $this->getIdentifier()->name)); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config Configuration options * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('controller' => $this->getIdentifier()->package, 'request' => 'lib:dispatcher.request', 'response' => 'lib:dispatcher.response', 'authenticators' => array())); parent::_initialize($config); }
/** * 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( 'model' => $this->_identifier->name, 'view' => $this->_identifier->name, 'behaviors' => array('executable', 'commandable'), 'readonly' => true, 'request' => array('format' => 'html') )); parent::_initialize($config); //Force the view to the information found in the request if(isset($config->request->view)) { $config->view = $config->request->view; } }
/** * Initializes the default configuration for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config Configuration options * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('model' => 'com:scheduler.model.jobs', 'jobs' => array())); parent::_initialize($config); }
/** * Initializes the default configuration for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param KConfig $config An optional KConfig object with configuration options. */ protected function _initialize(KConfig $config) { $config->append(array('response' => 'com:base.controller.response')); parent::_initialize($config); }
/** * 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('view' => null, 'action' => 'display')); parent::_initialize($config); }
/** * Initializes the default configuration for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config Configuration options * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('formats' => array('html'), 'view' => $this->getIdentifier()->name, 'toolbars' => array())); parent::_initialize($config); }