public static function GetArrayFromSoapArray($objSoapArray) { $objArrayToReturn = array(); foreach ($objSoapArray as $objSoapObject) { array_push($objArrayToReturn, WpUsers::GetObjectFromSoapObject($objSoapObject)); } return $objArrayToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new WpUsermeta(); if (property_exists($objSoapObject, 'UmetaId')) { $objToReturn->intUmetaId = $objSoapObject->UmetaId; } if (property_exists($objSoapObject, 'User') && $objSoapObject->User) { $objToReturn->User = WpUsers::GetObjectFromSoapObject($objSoapObject->User); } if (property_exists($objSoapObject, 'MetaKey')) { $objToReturn->strMetaKey = $objSoapObject->MetaKey; } if (property_exists($objSoapObject, 'MetaValue')) { $objToReturn->strMetaValue = $objSoapObject->MetaValue; } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new WpComments(); if (property_exists($objSoapObject, 'CommentID')) { $objToReturn->intCommentID = $objSoapObject->CommentID; } if (property_exists($objSoapObject, 'CommentPostIDObject') && $objSoapObject->CommentPostIDObject) { $objToReturn->CommentPostIDObject = WpPosts::GetObjectFromSoapObject($objSoapObject->CommentPostIDObject); } if (property_exists($objSoapObject, 'CommentAuthor')) { $objToReturn->strCommentAuthor = $objSoapObject->CommentAuthor; } if (property_exists($objSoapObject, 'CommentAuthorEmail')) { $objToReturn->strCommentAuthorEmail = $objSoapObject->CommentAuthorEmail; } if (property_exists($objSoapObject, 'CommentAuthorUrl')) { $objToReturn->strCommentAuthorUrl = $objSoapObject->CommentAuthorUrl; } if (property_exists($objSoapObject, 'CommentAuthorIP')) { $objToReturn->strCommentAuthorIP = $objSoapObject->CommentAuthorIP; } if (property_exists($objSoapObject, 'CommentDate')) { $objToReturn->dttCommentDate = new QDateTime($objSoapObject->CommentDate); } if (property_exists($objSoapObject, 'CommentDateGmt')) { $objToReturn->dttCommentDateGmt = new QDateTime($objSoapObject->CommentDateGmt); } if (property_exists($objSoapObject, 'CommentContent')) { $objToReturn->strCommentContent = $objSoapObject->CommentContent; } if (property_exists($objSoapObject, 'CommentKarma')) { $objToReturn->intCommentKarma = $objSoapObject->CommentKarma; } if (property_exists($objSoapObject, 'CommentApproved')) { $objToReturn->strCommentApproved = $objSoapObject->CommentApproved; } if (property_exists($objSoapObject, 'CommentAgent')) { $objToReturn->strCommentAgent = $objSoapObject->CommentAgent; } if (property_exists($objSoapObject, 'CommentType')) { $objToReturn->strCommentType = $objSoapObject->CommentType; } if (property_exists($objSoapObject, 'CommentParentObject') && $objSoapObject->CommentParentObject) { $objToReturn->CommentParentObject = WpComments::GetObjectFromSoapObject($objSoapObject->CommentParentObject); } if (property_exists($objSoapObject, 'User') && $objSoapObject->User) { $objToReturn->User = WpUsers::GetObjectFromSoapObject($objSoapObject->User); } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new WpPosts(); if (property_exists($objSoapObject, 'Id')) { $objToReturn->intId = $objSoapObject->Id; } if (property_exists($objSoapObject, 'PostAuthorObject') && $objSoapObject->PostAuthorObject) { $objToReturn->PostAuthorObject = WpUsers::GetObjectFromSoapObject($objSoapObject->PostAuthorObject); } if (property_exists($objSoapObject, 'PostDate')) { $objToReturn->dttPostDate = new QDateTime($objSoapObject->PostDate); } if (property_exists($objSoapObject, 'PostDateGmt')) { $objToReturn->dttPostDateGmt = new QDateTime($objSoapObject->PostDateGmt); } if (property_exists($objSoapObject, 'PostContent')) { $objToReturn->strPostContent = $objSoapObject->PostContent; } if (property_exists($objSoapObject, 'PostTitle')) { $objToReturn->strPostTitle = $objSoapObject->PostTitle; } if (property_exists($objSoapObject, 'PostExcerpt')) { $objToReturn->strPostExcerpt = $objSoapObject->PostExcerpt; } if (property_exists($objSoapObject, 'PostStatus')) { $objToReturn->strPostStatus = $objSoapObject->PostStatus; } if (property_exists($objSoapObject, 'CommentStatus')) { $objToReturn->strCommentStatus = $objSoapObject->CommentStatus; } if (property_exists($objSoapObject, 'PingStatus')) { $objToReturn->strPingStatus = $objSoapObject->PingStatus; } if (property_exists($objSoapObject, 'PostPassword')) { $objToReturn->strPostPassword = $objSoapObject->PostPassword; } if (property_exists($objSoapObject, 'PostName')) { $objToReturn->strPostName = $objSoapObject->PostName; } if (property_exists($objSoapObject, 'ToPing')) { $objToReturn->strToPing = $objSoapObject->ToPing; } if (property_exists($objSoapObject, 'Pinged')) { $objToReturn->strPinged = $objSoapObject->Pinged; } if (property_exists($objSoapObject, 'PostModified')) { $objToReturn->dttPostModified = new QDateTime($objSoapObject->PostModified); } if (property_exists($objSoapObject, 'PostModifiedGmt')) { $objToReturn->dttPostModifiedGmt = new QDateTime($objSoapObject->PostModifiedGmt); } if (property_exists($objSoapObject, 'PostContentFiltered')) { $objToReturn->strPostContentFiltered = $objSoapObject->PostContentFiltered; } if (property_exists($objSoapObject, 'PostParentObject') && $objSoapObject->PostParentObject) { $objToReturn->PostParentObject = WpPosts::GetObjectFromSoapObject($objSoapObject->PostParentObject); } if (property_exists($objSoapObject, 'Guid')) { $objToReturn->strGuid = $objSoapObject->Guid; } if (property_exists($objSoapObject, 'MenuOrder')) { $objToReturn->intMenuOrder = $objSoapObject->MenuOrder; } if (property_exists($objSoapObject, 'PostType')) { $objToReturn->strPostType = $objSoapObject->PostType; } if (property_exists($objSoapObject, 'PostMimeType')) { $objToReturn->strPostMimeType = $objSoapObject->PostMimeType; } if (property_exists($objSoapObject, 'CommentCount')) { $objToReturn->intCommentCount = $objSoapObject->CommentCount; } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new WpPollsip(); if (property_exists($objSoapObject, 'PollipId')) { $objToReturn->intPollipId = $objSoapObject->PollipId; } if (property_exists($objSoapObject, 'PollipQidObject') && $objSoapObject->PollipQidObject) { $objToReturn->PollipQidObject = WpPollsq::GetObjectFromSoapObject($objSoapObject->PollipQidObject); } if (property_exists($objSoapObject, 'PollipAidObject') && $objSoapObject->PollipAidObject) { $objToReturn->PollipAidObject = WpPollsa::GetObjectFromSoapObject($objSoapObject->PollipAidObject); } if (property_exists($objSoapObject, 'PollipIp')) { $objToReturn->strPollipIp = $objSoapObject->PollipIp; } if (property_exists($objSoapObject, 'PollipHost')) { $objToReturn->strPollipHost = $objSoapObject->PollipHost; } if (property_exists($objSoapObject, 'PollipTimestamp')) { $objToReturn->strPollipTimestamp = $objSoapObject->PollipTimestamp; } if (property_exists($objSoapObject, 'PollipUser')) { $objToReturn->strPollipUser = $objSoapObject->PollipUser; } if (property_exists($objSoapObject, 'PollipUseridObject') && $objSoapObject->PollipUseridObject) { $objToReturn->PollipUseridObject = WpUsers::GetObjectFromSoapObject($objSoapObject->PollipUseridObject); } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new WpWtiLikePost(); if (property_exists($objSoapObject, 'Id')) { $objToReturn->intId = $objSoapObject->Id; } if (property_exists($objSoapObject, 'Post') && $objSoapObject->Post) { $objToReturn->Post = WpPosts::GetObjectFromSoapObject($objSoapObject->Post); } if (property_exists($objSoapObject, 'Value')) { $objToReturn->intValue = $objSoapObject->Value; } if (property_exists($objSoapObject, 'DateTime')) { $objToReturn->dttDateTime = new QDateTime($objSoapObject->DateTime); } if (property_exists($objSoapObject, 'Ip')) { $objToReturn->strIp = $objSoapObject->Ip; } if (property_exists($objSoapObject, 'User') && $objSoapObject->User) { $objToReturn->User = WpUsers::GetObjectFromSoapObject($objSoapObject->User); } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }