static public function fetchCollectedInfoCount( $objectAttributeID, $objectID, $value, $creatorID = false, $userIdentifier = false ) { if ( $objectAttributeID ) $count = eZInformationCollection::fetchCountForAttribute( $objectAttributeID, $value ); else $count = eZInformationCollection::fetchCollectionsCount( $objectID, $creatorID, $userIdentifier ); return array( 'result' => $count ); }
if( is_numeric( $objectID ) ) { $object = eZContentObject::fetch( $objectID ); } if( !$object ) { return $module->handleError( eZError::KERNEL_NOT_AVAILABLE, 'kernel' ); } $collections = eZInformationCollection::fetchCollectionsList( $objectID, /* object id */ false, /* creator id */ false, /* user identifier */ array( 'limit' => $limit,'offset' => $offset ) /* limit array */ ); $numberOfCollections = eZInformationCollection::fetchCollectionsCount( $objectID ); $viewParameters = array( 'offset' => $offset ); $objectName = $object->attribute( 'name' ); $tpl = eZTemplate::factory(); $tpl->setVariable( 'module', $module ); $tpl->setVariable( 'limit', $limit ); $tpl->setVariable( 'view_parameters', $viewParameters ); $tpl->setVariable( 'object', $object ); $tpl->setVariable( 'collection_array', $collections ); $tpl->setVariable( 'collection_count', $numberOfCollections ); $Result = array(); $Result['content'] = $tpl->fetch( 'design:infocollector/collectionlist.tpl' ); $Result['path'] = array( array( 'url' => '/infocollector/overview',