PHP Class eZ\Publish\Core\FieldType\Author\AuthorCollection

This collection can only hold {@link \eZ\Publish\Core\FieldType\Author\Author} objects.
Inheritance: extends ArrayObjec\ArrayObject
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Public Methods

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

Method Details

__construct() public method

public __construct ( array $elements = [] )
$elements array

offsetSet() public method

Adds a new author to the collection.
public offsetSet ( integer $offset, Author $value )
$offset integer
$value Author

removeAuthorsById() public method

Removes authors from current collection with a list of Ids.
public removeAuthorsById ( array $authorIds )
$authorIds array Author's Ids to remove from current collection