private function getDataAsArray()
 {
     if ($this->api_search !== null) {
         $data = array();
         $this->api_search->setResultType(IcingaApiConstants::RESULT_ARRAY);
         $dataSet = $this->api_search->fetch();
         foreach ($dataSet as $result) {
             if ($this->result_count === null) {
                 $this->result_count = $result->getResultCount();
             }
             $tmp = $this->rewriteResultRow($result);
             /*
              * @todo add additional fields and content here
              */
             $data[] = $tmp;
         }
         return $data;
     }
 }
 public function setLimit(IcingaApiSearchIdo $search, AgaviRequestDataHolder $rd)
 {
     $start = $rd->getParameter("limit_start", 0);
     $limit = $rd->getParameter("limit", null);
     if ($limit > 0) {
         $search->setSearchLimit($start, $limit);
     }
 }