Esempio n. 1
0
 function forumSortByType($action, $limit)
 {
     L::loadClass('element', '', false);
     $pwElement = new PW_Element($this->defaultLimit);
     $data = $pwElement->forumSort($action, $limit);
     foreach ($data as $key => $value) {
         $tags[] = $value['addition']['fid'];
         $nums[$value['addition']['fid']] = $this->formatValue($value['value']);
     }
     $r = $this->getForumSort($tags, $nums);
     if (!empty($tags) && !empty($r)) {
         foreach ($tags as $key => $value) {
             if (!empty($r[$value])) {
                 $result[] = $r[$value];
             }
         }
     }
     return $result;
 }
Esempio n. 2
0
 function forumSortByType($action, $limit)
 {
     @(include_once R_P . 'lib/element.class.php');
     $pwElement = new PW_Element($this->defaultLimit);
     $data = $pwElement->forumSort($action, $limit);
     foreach ($data as $key => $value) {
         $tags[] = $value['addition']['fid'];
         $nums[$value['addition']['fid']] = $this->formatValue($value['value']);
     }
     $r = $this->getForumSort($tags, $nums);
     if (!empty($tags) && !empty($r)) {
         foreach ($tags as $key => $value) {
             if (!empty($r[$value])) {
                 $result[] = $r[$value];
             }
         }
     }
     return $result;
 }