public function __construct($hotelId = null) { parent::__construct(); if (isset($hotelId)) { $this->set__hotelId($hotelId); } }
/** * @param string $itineraryId * @param string $email */ public function __construct($itineraryId = null, $email = null) { parent::__construct(); if (isset($itineraryId)) { $this->set__itineraryId($itineraryId); } if (isset($email)) { $this->set__email($email); } }
/** * Run all queries through the facade. On success use $query internal * methods/properties to access the result data set. On failure, use $query * lastError property to get the error. EANFacade does not provide means to * access the result data. * @param EANAbstractQuery $query * @return boolean */ public function query(EANAbstractQuery $query) { $query->setParam('apiKey', $this->account->apiKey); $query->setParam('sig', $this->account->generateSignature()); $query->setParam('cid', $this->account->cid); $query->setParam('minorRev', $query::MINOR_REVISION); $query->setParam('locale', $this->locale->locale); $query->setParam('currencyCode', $this->locale->currency); $query->setParam('customerSessionId', $this->customer->customerSessionId); $query->setParam('customerIpAddress', $this->customer->customerIpAddress); $query->setParam('customerUserAgent', $this->customer->customerUserAgent); return $query->execute(); }
public function __construct($searchMethod = 2) { parent::__construct(); if (isset($searchMethod)) { $this->setSearchMethodFuzzy($searchMethod); } }