Exemplo n.º 1
0
 /**
  * Get Kunena session object
  *
  * Returns the global {@link KunenaSession} object, only creating it if it doesn't already exist.
  *
  * @param array|bool $update	An array containing session options
  * @return KunenaSession
  */
 public static function getSession($update = false)
 {
     if (!is_object(KunenaFactory::$session)) {
         KunenaFactory::$session = KunenaSession::getInstance($update);
     }
     return KunenaFactory::$session;
 }