X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FSession.php;h=24f53be63f093c779df17d17550c100963b7a090;hb=e913987d303f2c51e60be23820fc8d1031e7eadd;hp=964d42331537a2b877f549f0f31be3fc06ae5e1c;hpb=03c24df0b528f700e6765cc18a2c14d4d70e4bdf;p=civicrm-core.git diff --git a/CRM/Core/Session.php b/CRM/Core/Session.php index 964d423315..24f53be63f 100644 --- a/CRM/Core/Session.php +++ b/CRM/Core/Session.php @@ -27,6 +27,10 @@ require_once "PEAR.php"; + +/** + * Class CRM_Core_Session + */ class CRM_Core_Session { /** @@ -520,6 +524,9 @@ class CRM_Core_Session { } } + /** + * @param $names + */ static function registerAndRetrieveSessionObjects($names) { if (!is_array($names)) { $names = array($names); @@ -535,6 +542,9 @@ class CRM_Core_Session { CRM_Core_BAO_Cache::restoreSessionFromCache($names); } + /** + * @param bool $reset + */ static function storeSessionObjects($reset = TRUE) { if (empty(self::$_managedNames)) { return; @@ -559,6 +569,9 @@ class CRM_Core_Session { return $session->get('userID'); } + /** + * @return bool + */ function isEmpty() { // check if session is empty, if so we dont cache // stuff that we can get away with