Newscoop\Services\AuthorService::getOptions PHP Méthode

getOptions() public méthode

Get author options
public getOptions ( ) : array
Résultat array
    public function getOptions()
    {
        $authors = array();
        foreach ($this->repository->findBy(array(), array('last_name' => 'asc', 'first_name' => 'asc')) as $author) {
            $authors[$author->getId()] = $author->getFullName();
        }
        return $authors;
    }