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