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
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode 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 méthode

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

offsetSet() public méthode

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

removeAuthorsById() public méthode

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