protected function loadEventActions($file) { $xml = file_get_contents($this->dataDir . '/' . $file); $xml_element = new CultureFeed_SimpleXMLElement($xml); $event_actions = CultureFeed_Uitpas_Passholder_EventActions::createFromXML($xml_element); return $event_actions; }
public function getPassholderEventActions(CultureFeed_Uitpas_Passholder_Query_EventActions $query) { $data = $query->toPostData(); $result = $this->oauth_client->authenticatedGetAsXml('uitpas/passholder/eventActions', $data); try { $xml = new CultureFeed_SimpleXMLElement($result); } catch (Exception $e) { throw new CultureFeed_ParseException($result); } $eventActions = CultureFeed_Uitpas_Passholder_EventActions::createFromXML($xml); return $eventActions; }