public function GetEnrollments(array $LocationIDs, array $ClassScheduleIDs, array $CourseIDs, array $staffIDs, $startDate = NULL, $endDate = NULL, $PageSize = NULL, $CurrentPage = NULL, $XMLDetail = XMLDetail::Full, $Fields = NULL, SourceCredentials $credentials = null)
 {
     $additions = array();
     if (count($locationIDs) > 0) {
         $additions['LocationIDs'] = $locationIDs;
     }
     if (count($ClassScheduleIDs) > 0) {
         $additions['ClassScheduleIDs'] = $ClassScheduleIDs;
     }
     if (count($CourseIDs) > 0) {
         $additions['ClassDescriptionsIDs'] = $CourseIDs;
     }
     if (count($staffIDs) > 0) {
         $additions['StaffIDs'] = $staffIDs;
     }
     if (isset($startDate)) {
         $additions['StartDate'] = $startDate->format('Y-m-d');
     }
     if (isset($endDate)) {
         $additions['EndDate'] = $endDate->format('Y-m-d');
     }
     $params = $this->GetMindbodyParams($additions, $this->GetCredentials($credentials), $XMLDetail, $PageSize, $CurrentPage, $Fields);
     try {
         $result = $this->client->GetEnrollments($params);
     } catch (SoapFault $fault) {
         DebugResponse($this->client, $result);
         echo '</xmp><br/><br/> Error Message : <br/>', $fault->getMessage();
     }
     if ($this->debug) {
         DebugRequest($this->client);
         DebugResponse($this->client, $result);
     }
     return $result;
 }
 /**
  * Returns the raw result of the MINDBODY SOAP call.
  * @param int $PageSize
  * @param int $CurrentPage
  * @param string $XMLDetail
  * @param string $Fields
  * @param SourceCredentials $credentials A source credentials object to use with this call
  * @return object The raw result of the SOAP call
  */
 public function CheckoutShoppingCart($cartID = null, $clientID, $Test = false, array $cartItems, array $payments, SourceCredentials $credentials = null, $XMLDetail = XMLDetail::Full, $PageSize = NULL, $CurrentPage = NULL, $Fields = NULL)
 {
     $additions = array();
     $additions['ClientID'] = $clientID;
     $additions['CartItems'] = $cartItems;
     $additions['Payments'] = $payments;
     if (isset($cartID)) {
         $additions['CartID'] = $cartID;
     }
     if (isset($Test)) {
         $additions['Test'] = $Test;
     }
     $params = $this->GetMindbodyParams($additions, $this->GetCredentials($credentials), $XMLDetail, $PageSize, $CurrentPage, $Fields);
     try {
         $result = $this->client->CheckoutShoppingCart($params);
     } catch (SoapFault $fault) {
         DebugResponse($this->client, $fault->getMessage());
         // <xmp> tag displays xml output in html
         echo '</xmp><br/><br/> Error Message : <br/>', $fault->getMessage();
     }
     if ($this->debug) {
         DebugRequest($this->client);
         DebugResponse($this->client, $result);
     }
     return $result;
 }
Example #3
0
 public function ValidateLogin($username, $password, $PageSize = null, $CurrentPage = null, $XMLDetail = XMLDetail::Full, $Fields = null, SourceCredentials $credentials = null)
 {
     $additions['Username'] = $username;
     $additions['Password'] = $password;
     $params = $this->GetMindbodyParams($additions, $this->GetCredentials($credentials), $XMLDetail, $PageSize, $CurrentPage, $Fields);
     try {
         $result = $this->client->ValidateLogin($params);
     } catch (SoapFault $fault) {
         DebugResponse($result);
         echo '</xmp><br/><br/> Error Message : <br/>', $fault->getMessage();
     }
     if ($this->debug) {
         DebugRequest($this->client);
         DebugResponse($this->client, $result);
     }
     return $result;
 }
Example #4
0
 /**
  * Returns the raw result of the MINDBODY SOAP call.
  * @param int $PageSize
  * @param int $CurrentPage
  * @param string $XMLDetail
  * @param string $Fields
  * @param SourceCredentials $credentials A source credentials object to use with this call
  * @return object The raw result of the SOAP call
  */
 public function FinderCheckoutShoppingCart($mbfClassID, $partnerID, $searchLatitude, $searchLongitude, $paymentInfo, $test = false, $PageSize = null, $CurrentPage = null, $XMLDetail = XMLDetail::Full, $Fields = NULL, SourceCredentials $credentials = null, UserCredentials $usercredentials = null)
 {
     $additions = array();
     $additions['MBFClassID'] = $mbfClassID;
     $additions['SearchLatitude'] = $searchLatitude;
     $additions['SearchLongitude'] = $searchLongitude;
     $additions['PaymentInfo'] = $paymentInfo;
     $additions['PartnerID'] = $partnerID;
     if (isset($test)) {
         $additions['Test'] = $test;
     }
     $params = $this->GetMindbodyParams($additions, $this->GetCredentials($credentials), $XMLDetail, $PageSize, $CurrentPage, $Fields, $this->GetUserCredentials($usercredentials));
     $this->client->__setLocation("https://" . GetApiHostname() . "/0_5/FinderService.asmx");
     //Setting the Endpoint to use SSL
     try {
         $result = $this->client->FinderCheckoutShoppingCart($params);
     } catch (SoapFault $fault) {
         DebugResponse($this->client);
         // <xmp> tag displays xml output in html
         echo '</xmp><br/><br/> Error Message : <br/>', $fault->getMessage();
     }
     if ($this->debug) {
         DebugRequest($this->client);
         DebugResponse($this->client, $result);
     }
     return $result;
 }