Exemple #1
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, Myassets::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new MemberAsset();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'Member') && $objSoapObject->Member) {
         $objToReturn->Member = Memberdetails::GetObjectFromSoapObject($objSoapObject->Member);
     }
     if (property_exists($objSoapObject, 'Asset') && $objSoapObject->Asset) {
         $objToReturn->Asset = Myassets::GetObjectFromSoapObject($objSoapObject->Asset);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }