|
eZ Publish
[trunk]
|
The class eZInformationCollection handles information collected by content objects. More...
Inheritance diagram for eZInformationCollection:
Collaboration diagram for eZInformationCollection:Public Member Functions | |
| creator () | |
| dataMap () | |
| eZInformationCollection ($row) | |
| informationCollectionAttributes ($asObject=true) | |
| object () | |
Static Public Member Functions | |
| static | allowAnonymous ($contentObject) |
| static | attributeHideList () |
| static | cleanup () |
| static | create ($contentObjectID, $userIdentifier, $creatorID=false) |
| static | currentUserIdentifier () |
| static | definition () |
| static | displayHandling ($contentObject) |
| static | fetch ($id, $asObject=true) |
| static | fetchByUserIdentifier ($userIdentifier, $contentObjectID=false, $asObject=true) |
| static | fetchCollectionCountForObject ($objectID) |
| static | fetchCollectionsCount ($contentObjectID=false, $creatorID=false, $userIdentifier=false) |
| static | fetchCollectionsList ($contentObjectID=false, $creatorID=false, $userIdentifier=false, $limitArray=false, $sortArray=false, $asObject=true) |
| static | fetchCountForAttribute ($objectAttributeID, $value) |
| static | fetchCountList ($objectAttributeID) |
| static | generateUserIdentifier (&$user) |
| static | getSortArrayFromParam ($definition, $sortArray) |
| static | redirectURL ($contentObject) |
| static | removeCollection ($collectionID) |
| static | removeContentObject ($delID) |
| static | sendOutEmail ($contentObject) |
| static | templateForObject ($object) |
| static | typeForObject ($object) |
| static | userDataHandling ($contentObject) |
The class eZInformationCollection handles information collected by content objects.
Content objects can contain attributes which are able to collect information. The information collected is handled by the eZInformationCollection class.
Definition at line 21 of file ezinformationcollection.php.
| static eZInformationCollection::allowAnonymous | ( | $ | contentObject | ) | [static] |
true if anonymous users can submit data to the information collection $contentObject. Definition at line 202 of file ezinformationcollection.php.
| static eZInformationCollection::attributeHideList | ( | ) | [static] |
Definition at line 78 of file ezinformationcollection.php.
| static eZInformationCollection::cleanup | ( | ) | [static] |
Removes all collected information.
Definition at line 723 of file ezinformationcollection.php.
| static eZInformationCollection::create | ( | $ | contentObjectID, |
| $ | userIdentifier, | ||
| $ | creatorID = false |
||
| ) | [static] |
Creates a new eZInformationCollection instance.
Definition at line 700 of file ezinformationcollection.php.
Definition at line 596 of file ezinformationcollection.php.
| static eZInformationCollection::currentUserIdentifier | ( | ) | [static] |
Same as generateUserIdentifier but returns the user identifier for the current user.
Definition at line 664 of file ezinformationcollection.php.
Referenced by eZInfocollectorFunctionCollection\fetchCollectedInfoCollection().
Fetches information collection attributes and indexes by the content class attribute identifier.
Definition at line 636 of file ezinformationcollection.php.
| static eZInformationCollection::definition | ( | ) | [static] |
Reimplemented from eZPersistentObject.
Definition at line 31 of file ezinformationcollection.php.
Referenced by fetch(), fetchByUserIdentifier(), fetchCollectionsCount(), and fetchCollectionsList().
| static eZInformationCollection::displayHandling | ( | $ | contentObject | ) | [static] |
Definition at line 318 of file ezinformationcollection.php.
Definition at line 23 of file ezinformationcollection.php.
Referenced by create().
| static eZInformationCollection::fetch | ( | $ | id, |
| $ | asObject = true |
||
| ) | [static] |
Fetches the information collection by ID.
Definition at line 391 of file ezinformationcollection.php.
Referenced by creator(), eZInfocollectorFunctionCollection\fetchCollectedInfoCollection(), and object().
| static eZInformationCollection::fetchByUserIdentifier | ( | $ | userIdentifier, |
| $ | contentObjectID = false, |
||
| $ | asObject = true |
||
| ) | [static] |
Fetches the information collection by user identifier.
Definition at line 403 of file ezinformationcollection.php.
Referenced by eZInfocollectorFunctionCollection\fetchCollectedInfoCollection().
| static eZInformationCollection::fetchCollectionCountForObject | ( | $ | objectID | ) | [static] |
Definition at line 434 of file ezinformationcollection.php.
| static eZInformationCollection::fetchCollectionsCount | ( | $ | contentObjectID = false, |
| $ | creatorID = false, |
||
| $ | userIdentifier = false |
||
| ) | [static] |
| $creatorID | - optional, default false, the user to fetch collections for |
| $contentObjectID | - optional, default false, limits the fetched set of collection to a specific content object |
Fetch the number of items limited by the parameters
Definition at line 553 of file ezinformationcollection.php.
Referenced by eZInfocollectorFunctionCollection\fetchCollectedInfoCount().
| static eZInformationCollection::fetchCollectionsList | ( | $ | contentObjectID = false, |
| $ | creatorID = false, |
||
| $ | userIdentifier = false, |
||
| $ | limitArray = false, |
||
| $ | sortArray = false, |
||
| $ | asObject = true |
||
| ) | [static] |
| $creatorID | - optional, default false, limits the fetched set to a creator_id |
| $contentObjectID | - optional, default false, limits the fetched set of collection to a specific content object |
| $userIdentifier | - optional, default false, limits the fetched set to a user_identifier |
| $limitArray | - optional, default false, limits the number of returned results on the form: array( 'limit' => $limit, 'offset' => $offset ) |
| $sortArray | - optional, default false, how to sort the result, on the form: array( 'field', true/false ), true = asc |
| $asObject | - optional, default true, specifies if results should be returned as objects. |
Fetches a list of information collections.
Definition at line 491 of file ezinformationcollection.php.
| static eZInformationCollection::fetchCountForAttribute | ( | $ | objectAttributeID, |
| $ | value | ||
| ) | [static] |
Definition at line 414 of file ezinformationcollection.php.
Referenced by eZInfocollectorFunctionCollection\fetchCollectedInfoCount().
| static eZInformationCollection::fetchCountList | ( | $ | objectAttributeID | ) | [static] |
Definition at line 575 of file ezinformationcollection.php.
Referenced by eZInfocollectorFunctionCollection\fetchCollectedInfoCountList().
| static eZInformationCollection::generateUserIdentifier | ( | &$ | user | ) | [static] |
Generates a user identifier for the user $user. If $user is null then the current user will be used.
The user identifier is either calculated from the unique user ID or the IP address when the user is anonymous.
Definition at line 677 of file ezinformationcollection.php.
Referenced by currentUserIdentifier().
| static eZInformationCollection::getSortArrayFromParam | ( | $ | definition, |
| $ | sortArray | ||
| ) | [static] |
| $definition | - required, definition of fields |
| $sortArray | - required, the input array |
This function converts sorting on the form array ( 'field', true ) to the array( 'field' => true ) and checks if the field exists in the definition. The functions is used to make sorting the same way as done in fetch('content','list', ... )
Definition at line 456 of file ezinformationcollection.php.
Referenced by fetchCollectionsList().
| eZInformationCollection::informationCollectionAttributes | ( | $ | asObject = true | ) |
Definition at line 602 of file ezinformationcollection.php.
Referenced by dataMap().
Definition at line 656 of file ezinformationcollection.php.
| static eZInformationCollection::redirectURL | ( | $ | contentObject | ) | [static] |
Definition at line 354 of file ezinformationcollection.php.
| static eZInformationCollection::removeCollection | ( | $ | collectionID | ) | [static] |
Remove a specific collection
| contentobject | id |
Definition at line 124 of file ezinformationcollection.php.
| static eZInformationCollection::removeContentObject | ( | $ | delID | ) | [static] |
Remove infomation collection from specified contentobject_id
| delID | contentobject id |
Definition at line 100 of file ezinformationcollection.php.
Referenced by eZContentObject\purge().
| static eZInformationCollection::sendOutEmail | ( | $ | contentObject | ) | [static] |
Definition at line 285 of file ezinformationcollection.php.
| static eZInformationCollection::templateForObject | ( | $ | object | ) | [static] |
The template name is determined from the content class type and object attributes. See settings/collect.ini for more information.
Definition at line 146 of file ezinformationcollection.php.
| static eZInformationCollection::typeForObject | ( | $ | object | ) | [static] |
The template name is determined from the content class type and object attributes. See settings/collect.ini for more information.
Definition at line 158 of file ezinformationcollection.php.
Referenced by allowAnonymous(), displayHandling(), redirectURL(), sendOutEmail(), templateForObject(), and userDataHandling().
| static eZInformationCollection::userDataHandling | ( | $ | contentObject | ) | [static] |
Possible return types are:
Definition at line 249 of file ezinformationcollection.php.