/** * Initialize user related * @param $reset Flag to indicate whether or not the procedure can reset previously initialized session * @return Boolean Returns TRUE if successful, FALSE otherwise */ public static final function userInit($reset = false) { // ---- Make sure that the session is not being accidentally initialized more than once if (self::$_userInit && !$reset) { return false; } self::$_userInit = true; // ----- self::$_userCacheObject = false; self::$_userStack = self::sessionGet('__IEM_SYSTEM_CurrentUser_Stack', array(), 'intval'); return true; }
public static final function userInit($reset = false) { if (self::$_userInit && !$reset) { return false; } self::$_userInit = true; self::$_userCacheObject = false; self::$_userStack = self::sessionGet('__IEM_SYSTEM_CurrentUser_Stack', array(), 'intval'); return true; }