public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objParentidObject) { $objObject->objParentidObject = DleCategory::GetSoapObjectFromObject($objObject->objParentidObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->intParentid = null; } } return $objObject; }