public static function GetSoapArrayFromArray($objArray) { if (!$objArray) { return null; } $objArrayToReturn = array(); foreach ($objArray as $objObject) { array_push($objArrayToReturn, DlePost::GetSoapObjectFromObject($objObject, true)); } return unserialize(serialize($objArrayToReturn)); }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objNews) { $objObject->objNews = DlePost::GetSoapObjectFromObject($objObject->objNews, false); } else { if (!$blnBindRelatedObjects) { $objObject->intNewsId = null; } } return $objObject; }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objPost) { $objObject->objPost = DlePost::GetSoapObjectFromObject($objObject->objPost, false); } else { if (!$blnBindRelatedObjects) { $objObject->intPostId = null; } } if ($objObject->objUser) { $objObject->objUser = DleUsers::GetSoapObjectFromObject($objObject->objUser, false); } else { if (!$blnBindRelatedObjects) { $objObject->intUserId = null; } } if ($objObject->dttDate) { $objObject->dttDate = $objObject->dttDate->qFormat(QDateTime::FormatSoap); } return $objObject; }