Example #1
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objCompany) {
         $objObject->objCompany = Company::GetSoapObjectFromObject($objObject->objCompany, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intCompanyId = null;
         }
     }
     if ($objObject->objCountry) {
         $objObject->objCountry = Country::GetSoapObjectFromObject($objObject->objCountry, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intCountryId = null;
         }
     }
     if ($objObject->objStateProvince) {
         $objObject->objStateProvince = StateProvince::GetSoapObjectFromObject($objObject->objStateProvince, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intStateProvinceId = null;
         }
     }
     if ($objObject->objCreatedByObject) {
         $objObject->objCreatedByObject = UserAccount::GetSoapObjectFromObject($objObject->objCreatedByObject, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intCreatedBy = null;
         }
     }
     if ($objObject->dttCreationDate) {
         $objObject->dttCreationDate = $objObject->dttCreationDate->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->objModifiedByObject) {
         $objObject->objModifiedByObject = UserAccount::GetSoapObjectFromObject($objObject->objModifiedByObject, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intModifiedBy = null;
         }
     }
     return $objObject;
 }
Example #2
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objCountry) {
         $objObject->objCountry = Country::GetSoapObjectFromObject($objObject->objCountry, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intCountryId = null;
         }
     }
     if ($objObject->objTimezone) {
         $objObject->objTimezone = Timezone::GetSoapObjectFromObject($objObject->objTimezone, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intTimezoneId = null;
         }
     }
     if ($objObject->dttRegistrationDate) {
         $objObject->dttRegistrationDate = $objObject->dttRegistrationDate->__toString(QDateTime::FormatSoap);
     }
     return $objObject;
 }
Example #3
0
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, Country::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objCountry) {
         $objObject->objCountry = Country::GetSoapObjectFromObject($objObject->objCountry, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intCountryId = null;
         }
     }
     return $objObject;
 }