Exemple #1
0
 public static function doCountOnPeer(Criteria $c)
 {
     return TagPeer::doCount($c);
 }
Exemple #2
0
 public static function listContentModules($bIncludeEmpty = false)
 {
     $aResult = array();
     $aModules = self::listModules();
     // list modules except empty [if there is no inherit=true] and tag [if none exist]
     foreach ($aModules as $sModuleName => $aModulePath) {
         if (!$bIncludeEmpty && $sModuleName === 'empty' || $sModuleName === 'tag' && TagPeer::doCount(new Criteria()) == 0) {
             continue;
         }
         $sClassName = self::getClassNameByName($sModuleName);
         $aResult[$sModuleName] = self::getDisplayNameByName($sModuleName);
     }
     asort($aResult);
     return $aResult;
 }
 protected function doCountOnPeer(Criteria $c)
 {
     return TagPeer::doCount($c);
 }