public static function GetArrayFromSoapArray($objSoapArray) { $objArrayToReturn = array(); foreach ($objSoapArray as $objSoapObject) { array_push($objArrayToReturn, CommentCategory::GetObjectFromSoapObject($objSoapObject)); } return $objArrayToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new Comment(); if (property_exists($objSoapObject, 'Id')) { $objToReturn->intId = $objSoapObject->Id; } if (property_exists($objSoapObject, 'Person') && $objSoapObject->Person) { $objToReturn->Person = Person::GetObjectFromSoapObject($objSoapObject->Person); } if (property_exists($objSoapObject, 'PostedByLogin') && $objSoapObject->PostedByLogin) { $objToReturn->PostedByLogin = Login::GetObjectFromSoapObject($objSoapObject->PostedByLogin); } if (property_exists($objSoapObject, 'CommentPrivacyTypeId')) { $objToReturn->intCommentPrivacyTypeId = $objSoapObject->CommentPrivacyTypeId; } if (property_exists($objSoapObject, 'CommentCategory') && $objSoapObject->CommentCategory) { $objToReturn->CommentCategory = CommentCategory::GetObjectFromSoapObject($objSoapObject->CommentCategory); } if (property_exists($objSoapObject, 'Comment')) { $objToReturn->strComment = $objSoapObject->Comment; } if (property_exists($objSoapObject, 'DatePosted')) { $objToReturn->dttDatePosted = new QDateTime($objSoapObject->DatePosted); } if (property_exists($objSoapObject, 'DateAction')) { $objToReturn->dttDateAction = new QDateTime($objSoapObject->DateAction); } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }