示例#1
0
 /**
  * Sets the context response.
  *
  * @return KCommandContext
  */
 public function getCommandContext()
 {
     $context = parent::getCommandContext();
     $context->viewer = $this->_state->viewer;
     return $context;
 }
示例#2
0
 /**
  * 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.
  *
  * @return void
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('theme' => 'base'));
     $config->append(array('view' => 'tmpl://site/' . $config->theme . '.view.' . $this->getIdentifier()->name . '.' . $config->request->getFormat()));
     parent::_initialize($config);
 }
示例#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.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('toolbars' => array('menubar', $this->getIdentifier()->name), 'language' => 'com_' . $this->getIdentifier()->package));
     parent::_initialize($config);
 }