コード例 #1
0
ファイル: RPG.php プロジェクト: laiello/crindigan
 /**
  * Fetches the instance of RPG_Session or RPG_Session_Hybrid,
  * instantiating it if necessary.
  *
  * @return RPG_Session
  */
 public static function session()
 {
     if (self::$_session === null) {
         if (self::config('sessionHybrid')) {
             self::$_session = new RPG_Session_Hybrid();
         } else {
             self::$_session = new RPG_Session();
         }
     }
     return self::$_session;
 }