public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new CustomField(); if (property_exists($objSoapObject, 'CustomFieldId')) { $objToReturn->intCustomFieldId = $objSoapObject->CustomFieldId; } if (property_exists($objSoapObject, 'CustomFieldQtypeId')) { $objToReturn->intCustomFieldQtypeId = $objSoapObject->CustomFieldQtypeId; } if (property_exists($objSoapObject, 'DefaultCustomFieldValue') && $objSoapObject->DefaultCustomFieldValue) { $objToReturn->DefaultCustomFieldValue = CustomFieldValue::GetObjectFromSoapObject($objSoapObject->DefaultCustomFieldValue); } if (property_exists($objSoapObject, 'ShortDescription')) { $objToReturn->strShortDescription = $objSoapObject->ShortDescription; } if (property_exists($objSoapObject, 'ActiveFlag')) { $objToReturn->blnActiveFlag = $objSoapObject->ActiveFlag; } if (property_exists($objSoapObject, 'RequiredFlag')) { $objToReturn->blnRequiredFlag = $objSoapObject->RequiredFlag; } if (property_exists($objSoapObject, 'CreatedByObject') && $objSoapObject->CreatedByObject) { $objToReturn->CreatedByObject = UserAccount::GetObjectFromSoapObject($objSoapObject->CreatedByObject); } if (property_exists($objSoapObject, 'CreationDate')) { $objToReturn->dttCreationDate = new QDateTime($objSoapObject->CreationDate); } if (property_exists($objSoapObject, 'ModifiedByObject') && $objSoapObject->ModifiedByObject) { $objToReturn->ModifiedByObject = UserAccount::GetObjectFromSoapObject($objSoapObject->ModifiedByObject); } if (property_exists($objSoapObject, 'ModifiedDate')) { $objToReturn->strModifiedDate = $objSoapObject->ModifiedDate; } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new CustomFieldSelection(); if (property_exists($objSoapObject, 'CustomFieldSelectionId')) { $objToReturn->intCustomFieldSelectionId = $objSoapObject->CustomFieldSelectionId; } if (property_exists($objSoapObject, 'CustomFieldValue') && $objSoapObject->CustomFieldValue) { $objToReturn->CustomFieldValue = CustomFieldValue::GetObjectFromSoapObject($objSoapObject->CustomFieldValue); } if (property_exists($objSoapObject, 'EntityQtypeId')) { $objToReturn->intEntityQtypeId = $objSoapObject->EntityQtypeId; } if (property_exists($objSoapObject, 'EntityId')) { $objToReturn->intEntityId = $objSoapObject->EntityId; } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }
public static function GetArrayFromSoapArray($objSoapArray) { $objArrayToReturn = array(); foreach ($objSoapArray as $objSoapObject) { array_push($objArrayToReturn, CustomFieldValue::GetObjectFromSoapObject($objSoapObject)); } return $objArrayToReturn; }