コード例 #1
0
 /**
  * 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 intShortcutId
  * @return Shortcut[]
  */
 public static function GetJournalForId($intShortcutId)
 {
     $objDatabase = Shortcut::GetDatabase()->JournalingDatabase;
     $objResult = $objDatabase->Query('SELECT * FROM shortcut WHERE shortcut_id = ' . $objDatabase->SqlVariable($intShortcutId) . ' ORDER BY __sys_date');
     return Shortcut::InstantiateDbResult($objResult);
 }
コード例 #2
0
ファイル: ShortcutGen.class.php プロジェクト: heshuai64/einv2
    /**
     * Truncate shortcut table
     * @return void
     */
    public static function Truncate()
    {
        // Get the Database Object for this Class
        $objDatabase = Shortcut::GetDatabase();
        // Perform the Query
        $objDatabase->NonQuery('
				TRUNCATE `shortcut`');
    }