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