Exemplo n.º 1
0
 /**
  * @param \Mirasvit\Blog\Model\Author $row
  * @return string
  */
 public function getRowUrl($row)
 {
     return $this->getUrl('*/*/edit', ['id' => $row->getId()]);
 }
Exemplo n.º 2
0
 /**
  * @param Author $author
  * @return string
  */
 public function getAuthorUrl($author)
 {
     return $this->getUrl('/author/' . strtolower($author->getId()), 'author');
 }
Exemplo n.º 3
0
 /**
  * @param \Mirasvit\Blog\Model\Author $author
  * @return $this
  */
 public function addAuthorFilter($author)
 {
     $this->addFieldToFilter('author_id', $author->getId());
     return $this;
 }