|
eZ Publish
[4.2]
|
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 () |
| 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
$userID = eZUser::currentUserID(); eZContentBrowseRecent::fetchListForUser( $userID )
Definition at line 56 of file ezcontentbrowserecent.php.
| static eZContentBrowseRecent::cleanup | ( | ) | [static] |
Removes all recent entries for all users.
Definition at line 255 of file ezcontentbrowserecent.php.
| eZContentBrowseRecent::contentObjectID | ( | ) |
Definition at line 215 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 145 of file ezcontentbrowserecent.php.
| static eZContentBrowseRecent::definition | ( | ) | [static] |
The definition array is an associative array consists of these keys:
asc or desc.Example:
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 63 of file ezcontentbrowserecent.php.
Referenced by createNew(), fetch(), and fetchListForUser().
| eZContentBrowseRecent::eZContentBrowseRecent | ( | $ | row | ) |
Definition at line 58 of file ezcontentbrowserecent.php.
Referenced by createNew().
| static eZContentBrowseRecent::fetch | ( | $ | recentID | ) | [static] |
Definition at line 105 of file ezcontentbrowserecent.php.
Referenced by fetchNode().
| static eZContentBrowseRecent::fetchListForUser | ( | $ | userID | ) | [static] |
Definition at line 115 of file ezcontentbrowserecent.php.
| eZContentBrowseRecent::fetchNode | ( | ) |
Definition at line 207 of file ezcontentbrowserecent.php.
Referenced by contentObjectID().
| static eZContentBrowseRecent::maximumRecentItems | ( | $ | userID | ) | [static] |
Definition at line 128 of file ezcontentbrowserecent.php.
Referenced by createNew().
| static eZContentBrowseRecent::removeRecentByNodeID | ( | $ | nodeID | ) | [static] |
Definition at line 230 of file ezcontentbrowserecent.php.
Referenced by eZContentObjectTreeNode\removeThis().
| static eZContentBrowseRecent::updateNodeID | ( | $ | oldNodeID, |
| $ | newNodeID | ||
| ) | [static] |
Definition at line 241 of file ezcontentbrowserecent.php.