Esempio n. 1
0
 public static function get_instance()
 {
     if (is_null(session::$instance)) {
         session::$instance = new session();
     }
     return session::$instance;
 }
Esempio n. 2
0
 /**
  * getInstance - Get instance of session
  *
  * @access private
  * @return object
  */
 public static function getInstance()
 {
     if (self::$instance === NULL) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Esempio n. 3
0
 public static function get_last_url($delete = true)
 {
     $url = session::instance()->get('last_url', false);
     if ($delete) {
         session::instance()->delete('last_url');
     }
     return $url;
 }
Esempio n. 4
0
 static function initByInstance($instance)
 {
     self::$instance = $instance;
     session::init();
 }