Nooku_Components
[ class tree: Nooku_Components ] [ index: Nooku_Components ] [ all elements ]

Source for file lockable.php

Documentation is available at lockable.php

  1. <?php
  2. /**
  3.  * @version     $Id: lockable.php 4628 2012-05-06 19:56:43Z johanjanssens $
  4.  * @package     Nooku_Components
  5.  * @subpackage  Default
  6.  * @copyright   Copyright (C) 2007 - 2012 Johan Janssens. All rights reserved.
  7.  * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
  8.  * @link        http://www.nooku.org
  9.  */
  10.  
  11.  
  12. /**
  13.  * Database Lockable Behavior
  14.  *
  15.  * @author      Johan Janssens <johan@nooku.org>
  16.  * @package     Nooku_Components
  17.  * @subpackage  Default
  18.  */
  19. {
  20.     /**
  21.      * Initializes the options for the object
  22.      *
  23.      * Called from {@link __construct()} as a first step of object instantiation.
  24.      *
  25.      * @param   object  An optional KConfig object with configuration options
  26.      * @return void 
  27.      */
  28.     protected function _initialize(KConfig $config)
  29.     {
  30.         $config->append(array(
  31.             'lifetime'   =>  JFactory::getSession()->getExpire()
  32.         ));
  33.  
  34.         parent::_initialize($config);
  35.     }
  36. }

Documentation generated on Fri, 24 Jan 2014 03:01:11 +0100 by phpDocumentor 1.4.3