示例#1
0
 public function postPassholderEventActions(CultureFeed_Uitpas_Passholder_Query_ExecuteEventActions $eventActions)
 {
     $data = $eventActions->toPostData();
     $result = $this->oauth_client->authenticatedPostAsXml('uitpas/passholder/eventActions', $data);
     try {
         $xml = new CultureFeed_SimpleXMLElement($result);
     } catch (Exception $e) {
         throw new CultureFeed_ParseException($result);
     }
     $eventActions = CultureFeed_Uitpas_Passholder_ExecuteEventActionsResult::createFromXML($xml);
     return $eventActions;
 }
 /**
  * @param string $file
  * @return CultureFeed_Uitpas_Passholder_ExecuteEventActionsResult
  */
 protected function loadSample($file)
 {
     $xml = file_get_contents($this->dataDir . '/' . $file);
     $xml_element = new CultureFeed_SimpleXMLElement($xml);
     return CultureFeed_Uitpas_Passholder_ExecuteEventActionsResult::createFromXML($xml_element);
 }