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