eZPublish  4.5
eZContentBrowseRecent Class Reference

Handles recent nodes for users. More...

+ Inheritance diagram for eZContentBrowseRecent:
+ Collaboration diagram for eZContentBrowseRecent:

Public Member Functions

 contentObjectID ()
 
 eZContentBrowseRecent ($row)
 
 fetchNode ()
 
- Public Member Functions inherited from eZPersistentObject
 attribute ($attr, $noFunction=false)
 
 attributes ()
 
 eZPersistentObject ($row)
 
 fill ($row)
 
 hasAttribute ($attr)
 
 hasDirtyData ()
 
 remove ($conditions=null, $extraConditions=null)
 
 setAttribute ($attr, $val)
 
 setHasDirtyData ($hasDirtyData)
 
 store ($fieldFilters=null)
 
 sync ($fieldFilters=null)
 

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)
 
- Static Public Member Functions inherited from eZPersistentObject
static conditionText ($conditions)
 
static conditionTextByRow ($conditions, $row)
 
static count ($def, $conds=null, $field=null)
 
static definition ()
 
static escapeArray ($array)
 
static fetchObject ($def, $field_filters, $conds, $asObject=true, $grouping=null, $custom_fields=null)
 
static fetchObjectList ($def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null, $custom_tables=null, $custom_conds=null)
 
static getShortAttributeName ($db, $def, $attrName)
 
static handleRows ($rows, $class_name, $asObject)
 
static newObjectOrder ($def, $orderField, $conditions)
 
static removeObject ($def, $conditions=null, $extraConditions=null)
 
static reorderObject ($def, $orderField, $conditions, $down=true)
 
static swapRow ($table, $keys, $order_id, $rows, $id1, $id2)
 
static updateObjectList ($parameters)
 

Additional Inherited Members

- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Detailed Description

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

Fetching the list is done with

Member Function Documentation

static eZContentBrowseRecent::cleanup ( )
static

Removes all recent entries for all users.

Note
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.
eZContentBrowseRecent::contentObjectID ( )
Returns
the content object ID of the tree node which this item refers to.
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.

See Also
maximumRecentItems
Note
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Referenced by eZContentOperationCollection\publishNode().

static eZContentBrowseRecent::definition ( )
static

Referenced by createNew(), fetch(), and fetchListForUser().

eZContentBrowseRecent::eZContentBrowseRecent (   $row)

Referenced by createNew().

static eZContentBrowseRecent::fetch (   $recentID)
static
Returns
the recent item $recentID
static eZContentBrowseRecent::fetchListForUser (   $userID)
static
Returns
the recent list for the user identifier by $userID.

Referenced by eZContentFunctionCollection\fetchRecent().

eZContentBrowseRecent::fetchNode ( )
Returns
the tree node which this item refers to.

Referenced by contentObjectID().

static eZContentBrowseRecent::maximumRecentItems (   $userID)
static
Returns
the maximum number of recent items for user $userID. The default value is read from MaximumRecentItems from group BrowseSettings in browse.ini.
Note
Currently all users get the same default maximum amount

Referenced by createNew().

static eZContentBrowseRecent::removeRecentByNodeID (   $nodeID)
static
Note
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Referenced by eZContentObjectTreeNode\removeThis().

static eZContentBrowseRecent::updateNodeID (   $oldNodeID,
  $newNodeID 
)
static
Note
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Referenced by eZContentOperationCollection\publishNode().


The documentation for this class was generated from the following file: