/** * 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 intSignupEntryId * @return ClassRegistration[] */ public static function GetJournalForId($intSignupEntryId) { $objDatabase = ClassRegistration::GetDatabase()->JournalingDatabase; $objResult = $objDatabase->Query('SELECT * FROM class_registration WHERE signup_entry_id = ' . $objDatabase->SqlVariable($intSignupEntryId) . ' ORDER BY __sys_date'); return ClassRegistration::InstantiateDbResult($objResult); }