public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new PackageContribution();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'Package') && $objSoapObject->Package) {
         $objToReturn->Package = Package::GetObjectFromSoapObject($objSoapObject->Package);
     }
     if (property_exists($objSoapObject, 'Person') && $objSoapObject->Person) {
         $objToReturn->Person = Person::GetObjectFromSoapObject($objSoapObject->Person);
     }
     if (property_exists($objSoapObject, 'CurrentPackageVersion') && $objSoapObject->CurrentPackageVersion) {
         $objToReturn->CurrentPackageVersion = PackageVersion::GetObjectFromSoapObject($objSoapObject->CurrentPackageVersion);
     }
     if (property_exists($objSoapObject, 'CurrentPostDate')) {
         $objToReturn->dttCurrentPostDate = new QDateTime($objSoapObject->CurrentPostDate);
     }
     if (property_exists($objSoapObject, 'DownloadCount')) {
         $objToReturn->intDownloadCount = $objSoapObject->DownloadCount;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
예제 #2
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, Package::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
예제 #3
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new TopicLink();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'TopicLinkTypeId')) {
         $objToReturn->intTopicLinkTypeId = $objSoapObject->TopicLinkTypeId;
     }
     if (property_exists($objSoapObject, 'TopicCount')) {
         $objToReturn->intTopicCount = $objSoapObject->TopicCount;
     }
     if (property_exists($objSoapObject, 'MessageCount')) {
         $objToReturn->intMessageCount = $objSoapObject->MessageCount;
     }
     if (property_exists($objSoapObject, 'LastPostDate')) {
         $objToReturn->dttLastPostDate = new QDateTime($objSoapObject->LastPostDate);
     }
     if (property_exists($objSoapObject, 'Forum') && $objSoapObject->Forum) {
         $objToReturn->Forum = Forum::GetObjectFromSoapObject($objSoapObject->Forum);
     }
     if (property_exists($objSoapObject, 'Issue') && $objSoapObject->Issue) {
         $objToReturn->Issue = Issue::GetObjectFromSoapObject($objSoapObject->Issue);
     }
     if (property_exists($objSoapObject, 'WikiItem') && $objSoapObject->WikiItem) {
         $objToReturn->WikiItem = WikiItem::GetObjectFromSoapObject($objSoapObject->WikiItem);
     }
     if (property_exists($objSoapObject, 'Package') && $objSoapObject->Package) {
         $objToReturn->Package = Package::GetObjectFromSoapObject($objSoapObject->Package);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }