Exemplo n.º 1
0
 static function getArticleCounts()
 {
     if (empty(self::$artcounts)) {
         self::$artcounts = array();
         $types = array();
         $types[] = "announce";
         $types[] = "faqs";
         $types[] = "kb";
         $types[] = "glossary";
         foreach ($types as $type) {
             require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'content' . DS . $type . '.php';
             $class = "FSS_ContentEdit_{$type}";
             $content = new $class();
             self::$artcounts[$type] = array();
             self::$artcounts[$type]['desc'] = $content->descs;
             self::$artcounts[$type]['id'] = $content->id;
             self::$artcounts[$type]['counts'] = $content->getCounts();
         }
     }
     return self::$artcounts;
 }