Example #1
0
 /**
  * @access public
  * @return array
  */
 public function getSelectedAuthors()
 {
     $authors = array();
     $selected = $this->authorCategory->getSelectedAuthors($this->getCategory());
     if (!is_array($selected)) {
         $selected = array();
     }
     foreach ($selected as $author) {
         /** @var \Sample\News\Model\Author $author */
         $authors[$author->getId()] = $author->getPosition();
     }
     return $authors;
 }