Handles user/session preferences. More...
Public Member Functions | |
| eZPreferences () | |
Static Public Member Functions | |
| cleanup () | |
| isStoredInSession ($name) | |
| sessionCleanup () | |
| setValue ($name, $value, $storeUserID=false) | |
| storedSessionValue ($name) | |
| storeInSession ($name, $value) | |
| value ($name, $user=false) | |
| values ($user=false) | |
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 48 of file ezpreferences.php.
| eZPreferences::cleanup | ( | ) | [static] |
Removes all preferences for all users.
Definition at line 265 of file ezpreferences.php.
| eZPreferences::eZPreferences | ( | ) |
Definition at line 50 of file ezpreferences.php.
| eZPreferences::isStoredInSession | ( | $ | name | ) | [static] |
true if the preference named $name is stored in session. Definition at line 235 of file ezpreferences.php.
Referenced by value().
| eZPreferences::sessionCleanup | ( | ) | [static] |
Makes sure the stored session values are cleaned up.
Definition at line 211 of file ezpreferences.php.
| 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 67 of file ezpreferences.php.
Referenced by eZContentClass::instantiate().
| eZPreferences::storedSessionValue | ( | $ | name | ) | [static] |
null if none were found. Definition at line 248 of file ezpreferences.php.
Referenced by value().
| eZPreferences::storeInSession | ( | $ | name, | |
| $ | value | |||
| ) | [static] |
Makes sure the preferences named $name is stored in the session with the value $value.
Definition at line 221 of file ezpreferences.php.
Referenced by setValue(), value(), and values().
| 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 133 of file ezpreferences.php.
Referenced by eZContentObjectTreeNode::checkAccess(), eZContentObject::checkAccess(), eZContentClass::instantiate(), and eZKernelOperator::modify().
| 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 174 of file ezpreferences.php.
Referenced by eZNodeviewfunctions::generateViewCacheFile().
1.6.3