eZPublishCommunityProject  2013.9
eZ\Publish\Core\FieldType\Author\AuthorCollection Class Reference

Author collection. More...

+ Inheritance diagram for eZ\Publish\Core\FieldType\Author\AuthorCollection:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Author\AuthorCollection:

Public Member Functions

 __construct (array $elements=array())
 
 offsetSet ($offset, $value)
 Adds a new author to the collection. More...
 
 removeAuthorsById (array $authorIds)
 Removes authors from current collection with a list of Ids. More...
 

Detailed Description

Author collection.

This collection can only hold eZ\Publish\Core\FieldType\Author\Authorobjects

Constructor & Destructor Documentation

eZ\Publish\Core\FieldType\Author\AuthorCollection::__construct ( array  $elements = array())
Parameters
\eZ\Publish\Core\FieldType\Author\Author[]$elements

Member Function Documentation

eZ\Publish\Core\FieldType\Author\AuthorCollection::offsetSet (   $offset,
  $value 
)

Adds a new author to the collection.

Exceptions
InvalidArgumentTypeWhen $value is not of type Author
Parameters
int$offset
\eZ\Publish\Core\FieldType\Author\Author$value

Referenced by eZ\Publish\Core\FieldType\Author\AuthorCollection\__construct().

eZ\Publish\Core\FieldType\Author\AuthorCollection::removeAuthorsById ( array  $authorIds)

Removes authors from current collection with a list of Ids.

Parameters
array$authorIdsAuthor's Ids to remove from current collection

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