Example #1
0
 private function eventlist()
 {
     if ($this->get_request_method() == "GET") {
         $this->_request['object'] = isset($this->_request['object']) ? $this->_request['object'] : false;
         $this->_request['object_id'] = isset($this->_request['object_id']) ? $this->_request['object_id'] : false;
         $this->_request['action'] = isset($this->_request['action']) ? $this->_request['action'] : false;
         $eventlist = new Eventlist();
         $eventlist->init($this->_request['object'], (int) $this->_request['object_id'], $this->_request['action'], (int) $this->_request['offset'], (int) $this->_request['limit'], $this->_request['sort_by'], $this->_request['order']);
         $domxmldata = $eventlist->getDomXMLElement($this->domxml);
         $this->response($this->finishxml($domxmldata), 200);
     } else {
         $this->error_code = 2;
         $this->error_message = "The OriginatorStatusList could not be created, your request seems to be malformed.";
         $this->response($this->finishxml(), 400);
     }
 }