Exemplo n.º 1
0
 function _countArticles()
 {
     $articleset = new ArticleSet(AMP_Registry::getDbcon());
     if (!($counts = $articleset->getGroupedIndex('class'))) {
         return false;
     }
     return $counts;
 }
Exemplo n.º 2
0
 function AMPContentLookup_ActiveClasses()
 {
     require_once 'AMP/Content/Article/Set.inc.php';
     $articleset = new ArticleSet(AMP_Registry::getDbcon());
     $articleset->addCriteria(Article::makeCriteriaAllowed());
     if (!($counts = $articleset->getGroupedIndex('class'))) {
         return false;
     }
     $class_set = AMPContent_Lookup::instance('class');
     $this->dataset = array_combine_key(array_keys($counts), $class_set);
     asort($this->dataset);
 }