コード例 #1
0
ファイル: lockable.php プロジェクト: raeldc/com_learn
 /**
  * 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);
 }