Class

eZ\Publish\Core\FieldType\Author\AuthorCollection

class AuthorCollection extends ArrayObject

Author collection.

This collection can only hold {@link \eZ\Publish\Core\FieldType\Author\Author} objects.

Methods

__construct(array $elements = array())

offsetSet(int $offset, Author $value)

Adds a new author to the collection.

removeAuthorsById(array $authorIds)

Removes authors from current collection with a list of Ids.

Details

at line 23
public __construct(array $elements = array())

Parameters

array $elements

at line 41
public offsetSet(int $offset, Author $value)

Adds a new author to the collection.

Parameters

int $offset
Author $value

Exceptions

InvalidArgumentType When $value is not of type Author

at line 67
public removeAuthorsById(array $authorIds)

Removes authors from current collection with a list of Ids.

Parameters

array $authorIds Author's Ids to remove from current collection