示例#1
0
 public static function getData($params, $section_id)
 {
     $list = array();
     if ($params->get('records_num', 1)) {
         $list['records_num'] = CStatistics::records_num($section_id);
     }
     if ($params->get('comments_num', 1)) {
         $list['comments_num'] = CStatistics::comments_num($section_id);
     }
     if ($params->get('authors_num', 1)) {
         $list['authors_num'] = CStatistics::authors_num($section_id);
     }
     if ($params->get('members_num', 1)) {
         $list['members_num'] = CStatistics::members_num($section_id, $params);
     }
     if ($params->get('views_num', 1)) {
         $list['views_num'] = CStatistics::views_num($section_id);
     }
     return $list;
 }