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