Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 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;
 }