public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new AssetCustomFieldAssetModel();
     if (property_exists($objSoapObject, 'AssetCustomFieldAssetModelId')) {
         $objToReturn->intAssetCustomFieldAssetModelId = $objSoapObject->AssetCustomFieldAssetModelId;
     }
     if (property_exists($objSoapObject, 'AssetModel') && $objSoapObject->AssetModel) {
         $objToReturn->AssetModel = AssetModel::GetObjectFromSoapObject($objSoapObject->AssetModel);
     }
     if (property_exists($objSoapObject, 'CustomField') && $objSoapObject->CustomField) {
         $objToReturn->CustomField = CustomField::GetObjectFromSoapObject($objSoapObject->CustomField);
     }
     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, CustomField::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new EntityQtypeCustomField();
     if (property_exists($objSoapObject, 'EntityQtypeCustomFieldId')) {
         $objToReturn->intEntityQtypeCustomFieldId = $objSoapObject->EntityQtypeCustomFieldId;
     }
     if (property_exists($objSoapObject, 'EntityQtypeId')) {
         $objToReturn->intEntityQtypeId = $objSoapObject->EntityQtypeId;
     }
     if (property_exists($objSoapObject, 'CustomField') && $objSoapObject->CustomField) {
         $objToReturn->CustomField = CustomField::GetObjectFromSoapObject($objSoapObject->CustomField);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new CustomFieldValue();
     if (property_exists($objSoapObject, 'CustomFieldValueId')) {
         $objToReturn->intCustomFieldValueId = $objSoapObject->CustomFieldValueId;
     }
     if (property_exists($objSoapObject, 'CustomField') && $objSoapObject->CustomField) {
         $objToReturn->CustomField = CustomField::GetObjectFromSoapObject($objSoapObject->CustomField);
     }
     if (property_exists($objSoapObject, 'ShortDescription')) {
         $objToReturn->strShortDescription = $objSoapObject->ShortDescription;
     }
     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;
 }