コード例 #1
0
ファイル: session.php プロジェクト: Arturogcalleja/herbolario
 /**
  * Returns the global Session object, only creating it
  * if it doesn't already exist.
  *
  * @param   string  $handler  The type of session handler.
  * @param   array   $options  An array of configuration options.
  *
  * @return  JSession  The Session object.
  *
  * @since   11.1
  */
 public static function getInstance($handler, $options)
 {
     if (!is_object(self::$instance)) {
         self::$instance = new JSession($handler, $options);
     }
     return self::$instance;
 }
コード例 #2
0
ファイル: session.php プロジェクト: klas/joomla-cms
 /**
  * Returns the global Session object, only creating it if it doesn't already exist.
  *
  * @param   string                    $store             The type of storage for the session.
  * @param   array                     $options           An array of configuration options.
  * @param   JSessionHandlerInterface  $handlerInterface  The session handler
  *
  * @return  JSession  The Session object.
  *
  * @since   11.1
  */
 public static function getInstance($store, $options, JSessionHandlerInterface $handlerInterface = null)
 {
     if (!is_object(self::$instance)) {
         self::$instance = new JSession($store, $options, $handlerInterface);
     }
     return self::$instance;
 }