示例#1
0
 function read($query = false, $query_column = false, $query_order = false, $query_dir = false, $query_start = false, $query_limit = false)
 {
     $int_time_start = lib_datetime_microtime();
     parent::read($query, $query_column, $query_order, $query_dir, $query_start, $query_limit);
     $array_data['results'] = count($this->array_result);
     if (count($this->array_result) > 0) {
         for ($i = 0; $i < count($this->array_result); $i++) {
             try {
                 $array_data['nodes'][] = new model_forum_categories($this->array_result[$i]);
             } catch (Exception $e) {
                 core_debug::i()->add('500', $e->getMessage(), '');
             }
         }
     }
     $array_data['elapsed'] = lib_datetime_microtime() - $int_time_start;
     return $array_data;
 }