public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objModule) { $objObject->objModule = Module::GetSoapObjectFromObject($objObject->objModule, false); } else { if (!$blnBindRelatedObjects) { $objObject->intModuleId = null; } } if ($objObject->objAuthorization) { $objObject->objAuthorization = Authorization::GetSoapObjectFromObject($objObject->objAuthorization, false); } else { if (!$blnBindRelatedObjects) { $objObject->intAuthorizationId = null; } } if ($objObject->objTransactionType) { $objObject->objTransactionType = TransactionType::GetSoapObjectFromObject($objObject->objTransactionType, false); } else { if (!$blnBindRelatedObjects) { $objObject->intTransactionTypeId = null; } } return $objObject; }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objRole) { $objObject->objRole = Role::GetSoapObjectFromObject($objObject->objRole, false); } else { if (!$blnBindRelatedObjects) { $objObject->intRoleId = null; } } if ($objObject->objAuthorization) { $objObject->objAuthorization = Authorization::GetSoapObjectFromObject($objObject->objAuthorization, false); } else { if (!$blnBindRelatedObjects) { $objObject->intAuthorizationId = null; } } if ($objObject->objCreatedByObject) { $objObject->objCreatedByObject = UserAccount::GetSoapObjectFromObject($objObject->objCreatedByObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->intCreatedBy = null; } } if ($objObject->dttCreationDate) { $objObject->dttCreationDate = $objObject->dttCreationDate->__toString(QDateTime::FormatSoap); } if ($objObject->objModifiedByObject) { $objObject->objModifiedByObject = UserAccount::GetSoapObjectFromObject($objObject->objModifiedByObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->intModifiedBy = null; } } return $objObject; }
public static function GetSoapArrayFromArray($objArray) { if (!$objArray) { return null; } $objArrayToReturn = array(); foreach ($objArray as $objObject) { array_push($objArrayToReturn, Authorization::GetSoapObjectFromObject($objObject, true)); } return unserialize(serialize($objArrayToReturn)); }