Esempio n. 1
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new AttributeValue();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'Attribute') && $objSoapObject->Attribute) {
         $objToReturn->Attribute = Attribute::GetObjectFromSoapObject($objSoapObject->Attribute);
     }
     if (property_exists($objSoapObject, 'Person') && $objSoapObject->Person) {
         $objToReturn->Person = Person::GetObjectFromSoapObject($objSoapObject->Person);
     }
     if (property_exists($objSoapObject, 'DateValue')) {
         $objToReturn->dttDateValue = new QDateTime($objSoapObject->DateValue);
     }
     if (property_exists($objSoapObject, 'DatetimeValue')) {
         $objToReturn->dttDatetimeValue = new QDateTime($objSoapObject->DatetimeValue);
     }
     if (property_exists($objSoapObject, 'TextValue')) {
         $objToReturn->strTextValue = $objSoapObject->TextValue;
     }
     if (property_exists($objSoapObject, 'BooleanValue')) {
         $objToReturn->blnBooleanValue = $objSoapObject->BooleanValue;
     }
     if (property_exists($objSoapObject, 'SingleAttributeOption') && $objSoapObject->SingleAttributeOption) {
         $objToReturn->SingleAttributeOption = AttributeOption::GetObjectFromSoapObject($objSoapObject->SingleAttributeOption);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
Esempio n. 2
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, AttributeOption::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }