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