eZ Publish  [trunk]
eZCollaborationItem Class Reference

The class eZCollaborationItem does. More...

+ Inheritance diagram for eZCollaborationItem:
+ Collaboration diagram for eZCollaborationItem:

List of all members.

Public Member Functions

 content ()
 contentAttribute ($attribute)
 createNotificationEvent ($subType=false)
 creator ()
 eZCollaborationItem ($row)
 handler ()
 handleView ($viewMode)
 hasContentAttribute ($attribute)
 isCreator ()
 messageCount ()
 participantList ()
 setIsActive ($active, $userID=false)
 setLastRead ($userID=false, $timestamp=false)
 title ()
 unreadMessageCount ()
 useMessages ()
 userStatus ()

Static Public Member Functions

static cleanup ()
static create ($typeIdentifier, $creatorID, $status=self::STATUS_ACTIVE)
static definition ()
 Returns the definition for the object, the default implementation is to return an empty array.
static fetch ($id, $creatorID=false, $asObject=true)
static fetchList ($parameters=array())
static fetchListCount ($parameters=array())
static fetchListTool ($parameters=array(), $asCount)

Public Attributes

 $Created
 $CreatorID
 $DataFloat1
 $DataFloat2
 $DataFloat3
 $DataInt1
 $DataInt2
 $DataInt3
 $DataText1
 $DataText2
 $DataText3
 $ID
 $Modified
 $Status
 $TypeIdentifier
const STATUS_ACTIVE = 1
const STATUS_ARCHIVE = 3
const STATUS_INACTIVE = 2

Detailed Description

The class eZCollaborationItem does.

Definition at line 17 of file ezcollaborationitem.php.


Member Function Documentation

static eZCollaborationItem::cleanup ( ) [static]

Removes all collaboration items by fetching them and calling remove on them.

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.

Definition at line 510 of file ezcollaborationitem.php.

Definition at line 231 of file ezcollaborationitem.php.

Definition at line 262 of file ezcollaborationitem.php.

static eZCollaborationItem::create ( typeIdentifier,
creatorID,
status = self::STATUS_ACTIVE 
) [static]

Creates a collaboration notification event and stores it. subType can be used to specify a sub type of this collaboration item.

Definition at line 130 of file ezcollaborationitem.php.

Definition at line 154 of file ezcollaborationitem.php.

static eZCollaborationItem::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:

  • fields: an associative array of fields which defines which database field (the key) is to fetched and how they map to object member variables (the value).
  • keys: an array of fields which is used for uniquely identifying the object in the table.
  • function_attributes: an associative array of attributes which maps to member functions, used for fetching data with functions.
  • set_functions: an associative array of attributes which maps to member functions, used for setting data with functions.
  • increment_key: the field which is incremented on table inserts.
  • class_name: the classname which is used for instantiating new objecs when fetching from the database.
  • sort: an associative array which defines the default sorting of lists, the key is the table field while the value is the sorting method which is either 'asc' or 'desc'.
  • name: the name of the database table

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" ); }

Returns:
array

Reimplemented from eZPersistentObject.

Definition at line 31 of file ezcollaborationitem.php.

Referenced by fetch().

Constructor

Definition at line 26 of file ezcollaborationitem.php.

Referenced by create().

static eZCollaborationItem::fetchList ( parameters = array()) [static]
static eZCollaborationItem::fetchListCount ( parameters = array()) [static]
static eZCollaborationItem::fetchListTool ( parameters = array(),
asCount 
) [static]

Definition at line 344 of file ezcollaborationitem.php.

Referenced by fetchList(), and fetchListCount().

Definition at line 497 of file ezcollaborationitem.php.

Definition at line 252 of file ezcollaborationitem.php.

Returns:
the number of messages in this item.
Note:
The message count is purely abstract and it's up to each handler to return a valid count.

Definition at line 206 of file ezcollaborationitem.php.

eZCollaborationItem::setIsActive ( active,
userID = false 
)

Definition at line 272 of file ezcollaborationitem.php.

eZCollaborationItem::setLastRead ( userID = false,
timestamp = false 
)

Definition at line 327 of file ezcollaborationitem.php.

Definition at line 241 of file ezcollaborationitem.php.

Returns:
the number of unread messages in this item.
Note:
The message count is purely abstract and it's up to each handler to return a valid count. It's also up the handler to keep track of which messages are read or not.

Definition at line 221 of file ezcollaborationitem.php.

Returns:
true if the item uses messages.
Note:
It's up to each handler to control this.

Definition at line 192 of file ezcollaborationitem.php.


Member Data Documentation

eZCollaborationItem::$Created

Definition at line 530 of file ezcollaborationitem.php.

eZCollaborationItem::$CreatorID

Definition at line 528 of file ezcollaborationitem.php.

eZCollaborationItem::$DataFloat1

Definition at line 538 of file ezcollaborationitem.php.

eZCollaborationItem::$DataFloat2

Definition at line 539 of file ezcollaborationitem.php.

eZCollaborationItem::$DataFloat3

Definition at line 540 of file ezcollaborationitem.php.

eZCollaborationItem::$DataInt1

Definition at line 535 of file ezcollaborationitem.php.

eZCollaborationItem::$DataInt2

Definition at line 536 of file ezcollaborationitem.php.

eZCollaborationItem::$DataInt3

Definition at line 537 of file ezcollaborationitem.php.

eZCollaborationItem::$DataText1

Definition at line 532 of file ezcollaborationitem.php.

eZCollaborationItem::$DataText2

Definition at line 533 of file ezcollaborationitem.php.

eZCollaborationItem::$DataText3

Definition at line 534 of file ezcollaborationitem.php.

eZCollaborationItem::$ID

Definition at line 526 of file ezcollaborationitem.php.

eZCollaborationItem::$Modified

Definition at line 531 of file ezcollaborationitem.php.

eZCollaborationItem::$Status

Definition at line 529 of file ezcollaborationitem.php.

eZCollaborationItem::$TypeIdentifier

Definition at line 527 of file ezcollaborationitem.php.

Definition at line 21 of file ezcollaborationitem.php.


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