function _findMaxValues(&$arr)
 {
     include_once LIMB_DIR . '/core/util/ComplexArray.class.php';
     if (ComplexArray::getMaxColumnValue('hosts', $arr, $index) !== false) {
         $arr[$index]['max_hosts'] = 1;
     }
     if (ComplexArray::getMaxColumnValue('hits', $arr, $index) !== false) {
         $arr[$index]['max_hits'] = 1;
     }
     if (ComplexArray::getMaxColumnValue('home_hits', $arr, $index) !== false) {
         $arr[$index]['max_home_hits'] = 1;
     }
     if (ComplexArray::getMaxColumnValue('audience', $arr, $index) !== false) {
         $arr[$index]['max_audience'] = 1;
     }
     foreach ($arr as $index => $data) {
         if (date('w', $data['time'] + 60 * 60 * 24) == 1) {
             $arr[$index]['new_week'] = 1;
         }
     }
 }
 protected function _processResultArray($arr)
 {
     if (ComplexArray::getMaxColumnValue('hosts', $arr, $index) !== false) {
         $arr[$index]['max_hosts'] = 1;
     }
     if (ComplexArray::getMaxColumnValue('hits', $arr, $index) !== false) {
         $arr[$index]['max_hits'] = 1;
     }
     if (ComplexArray::getMaxColumnValue('home_hits', $arr, $index) !== false) {
         $arr[$index]['max_home_hits'] = 1;
     }
     if (ComplexArray::getMaxColumnValue('audience', $arr, $index) !== false) {
         $arr[$index]['max_audience'] = 1;
     }
     $result = array();
     foreach ($arr as $index => $data) {
         if (date('w', $data['time'] + 60 * 60 * 24) == 1) {
             $data['new_week'] = 1;
         }
         $result[$index] = $data;
     }
     return $result;
 }