Beispiel #1
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, PublicLogin::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new ProvisionalPublicLogin();
     if (property_exists($objSoapObject, 'PublicLogin') && $objSoapObject->PublicLogin) {
         $objToReturn->PublicLogin = PublicLogin::GetObjectFromSoapObject($objSoapObject->PublicLogin);
     }
     if (property_exists($objSoapObject, 'FirstName')) {
         $objToReturn->strFirstName = $objSoapObject->FirstName;
     }
     if (property_exists($objSoapObject, 'LastName')) {
         $objToReturn->strLastName = $objSoapObject->LastName;
     }
     if (property_exists($objSoapObject, 'EmailAddress')) {
         $objToReturn->strEmailAddress = $objSoapObject->EmailAddress;
     }
     if (property_exists($objSoapObject, 'UrlHash')) {
         $objToReturn->strUrlHash = $objSoapObject->UrlHash;
     }
     if (property_exists($objSoapObject, 'ConfirmationCode')) {
         $objToReturn->strConfirmationCode = $objSoapObject->ConfirmationCode;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }