/** * Gets the historical journal for an object from the log database. * Objects will have VirtualAttributes available to lookup login, date, and action information from the journal object. * @param integer intRoleTransactionTypeAuthorizationId * @return RoleTransactionTypeAuthorization[] */ public static function GetJournalForId($intRoleTransactionTypeAuthorizationId) { $objDatabase = RoleTransactionTypeAuthorization::GetDatabase()->JournalingDatabase; $objResult = $objDatabase->Query('SELECT * FROM role_transaction_type_authorization WHERE role_transaction_type_authorization_id = ' . $objDatabase->SqlVariable($intRoleTransactionTypeAuthorizationId) . ' ORDER BY __sys_date'); return RoleTransactionTypeAuthorization::InstantiateDbResult($objResult); }