Exemple #1
0
 /**
  * __construct 
  * 
  * @access private
  * @return void
  */
 private function __construct()
 {
     $this->logger = $GLOBALS['logger'];
     $this->app = $GLOBALS['app'];
     $this->dao = new \Akzo\Sales\DAOImpl();
     $this->cache = new \Native5\Core\Caching\Cache(\Native5\Core\Caching\SimpleCache::instance());
 }
 /**
  * __construct Default Constructor.
  * 
  * @param int $expiryInterval (defaults to 300s)
  *
  * @access public
  * @return void
  */
 public function __construct($expiryInterval = 300)
 {
     $this->_db = DB::instance();
     $this->_cache = SimpleCache::instance();
     $this->_sessionExpiryInterval = $expiryInterval;
 }