/** * 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 intId * @return WikiVersion[] */ public static function GetJournalForId($intId) { $objDatabase = WikiVersion::GetDatabase()->JournalingDatabase; $objResult = $objDatabase->Query('SELECT * FROM wiki_version WHERE id = ' . $objDatabase->SqlVariable($intId) . ' ORDER BY __sys_date'); return WikiVersion::InstantiateDbResult($objResult); }
/** * Truncate wiki_version table * @return void */ public static function Truncate() { // Get the Database Object for this Class $objDatabase = WikiVersion::GetDatabase(); // Perform the Query $objDatabase->NonQuery(' TRUNCATE `wiki_version`'); }