Пример #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(
         'lifetime'   =>  KFactory::get('joomla:session')->getExpire()
     ));
     
     parent::_initialize($config);
 }
Пример #2
0
 /**
  * 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('lifetime' => JFactory::getSession()->getExpire()));
     parent::_initialize($config);
 }