Newscoop\Services\AuthorService::getOptions PHP 메소드

getOptions() 공개 메소드

Get author options
public getOptions ( ) : array
리턴 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;
    }