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