public static function GetSoapArrayFromArray($objArray) { if (!$objArray) { return null; } $objArrayToReturn = array(); foreach ($objArray as $objObject) { array_push($objArrayToReturn, WpUsers::GetSoapObjectFromObject($objObject, true)); } return unserialize(serialize($objArrayToReturn)); }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objUser) { $objObject->objUser = WpUsers::GetSoapObjectFromObject($objObject->objUser, false); } else { if (!$blnBindRelatedObjects) { $objObject->intUserId = null; } } return $objObject; }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objCommentPostIDObject) { $objObject->objCommentPostIDObject = WpPosts::GetSoapObjectFromObject($objObject->objCommentPostIDObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->intCommentPostID = null; } } if ($objObject->dttCommentDate) { $objObject->dttCommentDate = $objObject->dttCommentDate->qFormat(QDateTime::FormatSoap); } if ($objObject->dttCommentDateGmt) { $objObject->dttCommentDateGmt = $objObject->dttCommentDateGmt->qFormat(QDateTime::FormatSoap); } if ($objObject->objCommentParentObject) { $objObject->objCommentParentObject = WpComments::GetSoapObjectFromObject($objObject->objCommentParentObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->intCommentParent = null; } } if ($objObject->objUser) { $objObject->objUser = WpUsers::GetSoapObjectFromObject($objObject->objUser, false); } else { if (!$blnBindRelatedObjects) { $objObject->intUserId = null; } } return $objObject; }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objPostAuthorObject) { $objObject->objPostAuthorObject = WpUsers::GetSoapObjectFromObject($objObject->objPostAuthorObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->intPostAuthor = null; } } if ($objObject->dttPostDate) { $objObject->dttPostDate = $objObject->dttPostDate->qFormat(QDateTime::FormatSoap); } if ($objObject->dttPostDateGmt) { $objObject->dttPostDateGmt = $objObject->dttPostDateGmt->qFormat(QDateTime::FormatSoap); } if ($objObject->dttPostModified) { $objObject->dttPostModified = $objObject->dttPostModified->qFormat(QDateTime::FormatSoap); } if ($objObject->dttPostModifiedGmt) { $objObject->dttPostModifiedGmt = $objObject->dttPostModifiedGmt->qFormat(QDateTime::FormatSoap); } if ($objObject->objPostParentObject) { $objObject->objPostParentObject = WpPosts::GetSoapObjectFromObject($objObject->objPostParentObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->intPostParent = null; } } return $objObject; }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objPollipQidObject) { $objObject->objPollipQidObject = WpPollsq::GetSoapObjectFromObject($objObject->objPollipQidObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->strPollipQid = null; } } if ($objObject->objPollipAidObject) { $objObject->objPollipAidObject = WpPollsa::GetSoapObjectFromObject($objObject->objPollipAidObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->strPollipAid = null; } } if ($objObject->objPollipUseridObject) { $objObject->objPollipUseridObject = WpUsers::GetSoapObjectFromObject($objObject->objPollipUseridObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->intPollipUserid = null; } } return $objObject; }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objPost) { $objObject->objPost = WpPosts::GetSoapObjectFromObject($objObject->objPost, false); } else { if (!$blnBindRelatedObjects) { $objObject->intPostId = null; } } if ($objObject->dttDateTime) { $objObject->dttDateTime = $objObject->dttDateTime->qFormat(QDateTime::FormatSoap); } if ($objObject->objUser) { $objObject->objUser = WpUsers::GetSoapObjectFromObject($objObject->objUser, false); } else { if (!$blnBindRelatedObjects) { $objObject->intUserId = null; } } return $objObject; }