/** * Model Save() method should call this to indicate that a table has changed. * * @param string $strTableName * @throws QCallerException */ public static function MarkTableModified($strDbName, $strTableName) { parent::MarkTableModified($strDbName, $strTableName); if (!static::$objCache) { static::initCache(); } $key = static::GetKey($strDbName, $strTableName); $time = microtime(); self::$objCache->Set($key, $time); }
/** * Support function for the Form to determine if any of the watchers have changed since the last time * it checked. Since this is relying on a global variable, the variable is reset upon program entry, including * ajax entry. So really, we are just detecting if any operation we have currently done has changed a watcher, so * that the form can broadcast that fact to other browser windows that might be looking. * * @param QWatcher[]|null $objWatchers * @return bool */ public static function WatchersChanged() { $blnChanged = self::$blnWatcherChanged; self::$blnWatcherChanged = false; return $blnChanged; }