$useId ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : '';
 $useSticky ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : '';
 $useTitle ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : '';
 $useCreationDate ? $text[0][] = $PMF_LANG['ad_stat_report_creation_date'] : '';
 $useOwner ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : '';
 $useLastModified ? $text[0][] = $PMF_LANG['ad_stat_report_last_modified_person'] : '';
 $useUrl ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : '';
 $useVisits ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : '';
 $report = new PMF_Report($faqConfig);
 foreach ($report->getReportingData() as $data) {
     $i = $data['faq_id'];
     if ($useCategory) {
         if (0 != $data['category_parent']) {
             $text[$i][] = $data['category_parent'];
         } else {
             $text[$i][] = $report->convertEncoding($data['category_name']);
         }
     }
     if ($useSubcategory) {
         if (0 != $data['category_parent']) {
             $text[$i][] = $report->convertEncoding($data['category_name']);
         } else {
             $text[$i][] = 'n/a';
         }
     }
     if ($useTranslation) {
         $text[$i][] = $data['faq_translations'];
     }
     if ($useLanguage) {
         $text[$i][] = $report->convertEncoding($languageCodes[strtoupper($data['faq_language'])]);
     }
示例#2
0
 $useId ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : '';
 $useSticky ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : '';
 $useTitle ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : '';
 $useCreationDate ? $text[0][] = $PMF_LANG['ad_stat_report_creation_date'] : '';
 $useOwner ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : '';
 $useLastModified ? $text[0][] = $PMF_LANG['ad_stat_report_last_modified_person'] : '';
 $useUrl ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : '';
 $useVisits ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : '';
 $report = new PMF_Report($db, $language);
 foreach ($report->getReportingData() as $data) {
     $i = $data['faq_id'];
     if ($useCategory) {
         if (0 != $data['category_parent']) {
             $text[$i][] = $data['category_parent'];
         } else {
             $text[$i][] = $report->convertEncoding($data['category_name']);
         }
     }
     if ($useSubcategory) {
         if (0 != $data['category_parent']) {
             $text[$i][] = $report->convertEncoding($data['category_name']);
         } else {
             $text[$i][] = 'n/a';
         }
     }
     if ($useTranslation) {
         $text[$i][] = $data['faq_translations'];
     }
     if ($useLanguage) {
         $text[$i][] = $report->convertEncoding($languageCodes[strtoupper($data['faq_language'])]);
     }