コード例 #1
0
ファイル: ContentHelper.php プロジェクト: hurad/hurad
 public function listPages($args = '')
 {
     $defaults = array('direction' => 'asc', 'sort' => 'title', 'echo' => 1, 'link_before' => '', 'link_after' => '');
     $mixedArgs = HuradFunctions::parseArgs($args, $defaults);
     $pages = $this->requestAction('/pages/pageIndex/sort:' . $mixedArgs['sort'] . '/direction:' . $mixedArgs['direction']);
     if (count($pages) > 0) {
         $output = $this->pageTreeRender($pages);
     } else {
         $output = __d('hurad', 'No pages were found');
     }
     return $this->Hook->applyFilters('Helper.Page.listPages', $output, $pages, $mixedArgs);
 }