예제 #1
0
 static function _getSubNavFromArticleLabel($label, $controller)
 {
     $subNav = array();
     $articles = $controller->dbCall('articles', 'getArticlesByLabel', array($label), TRUE);
     if ($articles) {
         $subNav = Helper_Krco::buildNavFromArticles($controller, $label, $articles);
         /*
         foreach ($articles as $art) {
             $fid = $art->getFriendlyId();
             $key = "$label/$fid";
             $subNav[$key] = array(
                 'title' => $art->getTitle($controller->lang),
                 'link' => self::composeArticleLink($controller, $label, $fid)
             );
         }
         */
     }
     return $subNav;
 }