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