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