|
eZ Publish
[trunk]
|
Handles recent nodes for users. More...
Inheritance diagram for eZContentBrowseRecent:
Collaboration diagram for eZContentBrowseRecent:Public Member Functions | |
| contentObjectID () | |
| eZContentBrowseRecent ($row) | |
| fetchNode () | |
Static Public Member Functions | |
| static | cleanup () |
| static | createNew ($userID, $nodeID, $nodeName) |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | fetch ($recentID) |
| static | fetchListForUser ($userID) |
| static | maximumRecentItems ($userID) |
| static | removeRecentByNodeID ($nodeID) |
| static | updateNodeID ($oldNodeID, $newNodeID) |
Handles recent nodes for users.
Allows the creation and fetching of recent lists for users. The recent list is used in the browse page to allow quick navigation and selection.
Creating a new recent item is done with
$userID = eZUser::currentUserID(); $nodeID = 2; $nodeName = 'Node'; eZContentBrowseRecent::createNew( $userID, $nodeID, $nodeName )
Fetching the list is done with
Definition at line 33 of file ezcontentbrowserecent.php.
| static eZContentBrowseRecent::cleanup | ( | ) | [static] |
Removes all recent entries for all users.
Definition at line 232 of file ezcontentbrowserecent.php.
Definition at line 192 of file ezcontentbrowserecent.php.
| static eZContentBrowseRecent::createNew | ( | $ | userID, |
| $ | nodeID, | ||
| $ | nodeName | ||
| ) | [static] |
Tries to create a new recent item and returns it. If the node ID $nodeID already exists as a recent item nothing is done and the old item is returned.
It will also remove items when the maximum number of items for the user $userID is exceeded.
Definition at line 122 of file ezcontentbrowserecent.php.
Referenced by eZContentOperationCollection\publishNode().
| static eZContentBrowseRecent::definition | ( | ) | [static] |
Returns the definition for the object, the default implementation is to return an empty array.
It's upto each inheriting class to return a proper definition array.
The definition array is an associative array consists of these keys:
Example: public static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }
Reimplemented from eZPersistentObject.
Definition at line 40 of file ezcontentbrowserecent.php.
Referenced by createNew(), fetch(), and fetchListForUser().
Definition at line 35 of file ezcontentbrowserecent.php.
Referenced by createNew().
| static eZContentBrowseRecent::fetch | ( | $ | recentID | ) | [static] |
Definition at line 82 of file ezcontentbrowserecent.php.
Referenced by fetchNode().
| static eZContentBrowseRecent::fetchListForUser | ( | $ | userID | ) | [static] |
Definition at line 92 of file ezcontentbrowserecent.php.
Referenced by eZContentFunctionCollection\fetchRecent().
Definition at line 184 of file ezcontentbrowserecent.php.
Referenced by contentObjectID().
| static eZContentBrowseRecent::maximumRecentItems | ( | $ | userID | ) | [static] |
Definition at line 105 of file ezcontentbrowserecent.php.
Referenced by createNew().
| static eZContentBrowseRecent::removeRecentByNodeID | ( | $ | nodeID | ) | [static] |
Definition at line 207 of file ezcontentbrowserecent.php.
Referenced by eZContentObjectTreeNode\removeThis().
| static eZContentBrowseRecent::updateNodeID | ( | $ | oldNodeID, |
| $ | newNodeID | ||
| ) | [static] |
Definition at line 218 of file ezcontentbrowserecent.php.
Referenced by eZContentOperationCollection\publishNode().