public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objPost) { $objObject->objPost = WpPosts::GetSoapObjectFromObject($objObject->objPost, false); } else { if (!$blnBindRelatedObjects) { $objObject->intPostId = 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->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; }
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->dttTime) { $objObject->dttTime = $objObject->dttTime->qFormat(QDateTime::FormatSoap); } if ($objObject->objPostnumObject) { $objObject->objPostnumObject = WpPosts::GetSoapObjectFromObject($objObject->objPostnumObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->strPostnum = null; } } return $objObject; }