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