public function ciirusbooking($xml_property_id, $arrivalDate, $departureDate, $guestArr) { __autoloadPlugin('Ciirus'); global $mySession; $db = new Db(); $this->debug = false; // $pptyArr = $db->runQuery("select * from " . PROPERTY . " // inner join subscriber on subscriber.subscriber_id = " . PROPERTY . ".xml_subscriber_id // where xml_subscriber_id > 0 "); $res = new Ciirus("c346aeb90de54a3", "ff3a6f4e60ab4ec"); $reservation = $res->makeBooking($xml_property_id, $arrivalDate, $departureDate, $guestArr); return $reservation; }