|
eZ Publish
[4.2]
|
Handles user/session preferences. More...
Static Public Member Functions | |
| static | cleanup () |
| static | isStoredInSession ($name) |
| static | sessionCleanup () |
| static | setValue ($name, $value, $storeUserID=false) |
| static | storedSessionValue ($name) |
| static | storeInSession ($name, $value) |
| static | value ($name, $user=false) |
| static | values ($user=false) |
Public Attributes | |
| const | SESSION_NAME = "eZPreferences" |
Handles user/session preferences.
Preferences can be either pr user or pr session. eZPreferences will automatically set a session preference if the user is not logged in, if not a user preference will be set.
Definition at line 44 of file ezpreferences.php.
| static eZPreferences::cleanup | ( | ) | [static] |
Removes all preferences for all users.
Definition at line 261 of file ezpreferences.php.
| static eZPreferences::isStoredInSession | ( | $ | name | ) | [static] |
true if the preference named $name is stored in session. Definition at line 231 of file ezpreferences.php.
Referenced by value().
| static eZPreferences::sessionCleanup | ( | ) | [static] |
Makes sure the stored session values are cleaned up.
Definition at line 207 of file ezpreferences.php.
| static eZPreferences::setValue | ( | $ | name, |
| $ | value, | ||
| $ | storeUserID = false |
||
| ) | [static] |
Sets a preference value for a given user. If the user is anonymous the value is only stored in session.
| $name | The name of the preference to store |
| $value | The value of the preference to store |
| $storeUserID | The user which should get the preference, if false it will use the current user |
true if the preference was stored correctly or false if something went wrong Definition at line 61 of file ezpreferences.php.
Referenced by eZContentClass\instantiate(), and eZSiteInstaller\updatePreferences().
| static eZPreferences::storedSessionValue | ( | $ | name | ) | [static] |
null if none were found. Definition at line 244 of file ezpreferences.php.
Referenced by value().
| static eZPreferences::storeInSession | ( | $ | name, |
| $ | value | ||
| ) | [static] |
Makes sure the preferences named $name is stored in the session with the value $value.
Definition at line 217 of file ezpreferences.php.
Referenced by setValue(), value(), and values().
| static eZPreferences::value | ( | $ | name, |
| $ | user = false |
||
| ) | [static] |
| $user | The user object to read preferences for, if false it will read using the current user. |
false is returned. Definition at line 129 of file ezpreferences.php.
Referenced by eZContentObject\checkAccess(), eZContentObjectTreeNode\checkAccess(), eZContentObject\classListFromPolicy(), eZContentObjectTreeNode\classListFromPolicy(), eZContentClass\instantiate(), and eZKernelOperator\modify().
| static eZPreferences::values | ( | $ | user = false | ) | [static] |
| $user | The user object to read preferences for, if false it will read using the current user. |
Definition at line 170 of file ezpreferences.php.
Referenced by eZNodeviewfunctions\generateViewCacheFile().
| const eZPreferences::SESSION_NAME = "eZPreferences" |
Definition at line 46 of file ezpreferences.php.
Referenced by isStoredInSession(), sessionCleanup(), storedSessionValue(), storeInSession(), and values().