/** * Get comments for this page * * @param boolean $approvedOnly * @return array */ public function getComments($approvedOnly = true) { return HumanHelp_Model_Comment::getCommentsForPage($this->_book->getName(), $this->_pageName, $approvedOnly); }
public function tableOfContents(HumanHelp_Model_Book $book, HumanHelp_Model_Page $page = null) { $this->_baseUrl = $this->view->baseUrl . '/content/' . $book->getName() . '/'; $html = '<ul class="toc">' . $this->_getSubTree($book->getToc()) . '</ul>'; return $html; }