Jump to navigation Jump to search
This manual page is outdated. It was written for an older version of MediaWiki and may not apply to the most recent version. If you have checked or updated this page and found the content to be suitable, please remove this notice. .
|MediaWiki file: LogEntry.php|
|Source code:||master • 1.34.1 • 1.33.3 • 1.31.7|
LogEntry.php утрымлівае клясы, якія працуюць з асобнымі запісамі ў журналах падзеяў. It has the interface LogEntry, the abstract class LogEntryBase, and the classes DatabaseLogEntry, RCDatabaseLogEntry, and ManualLogEntry.
- ManualLogEntry is used for creating new log entries and then inserting them into the database.
- DatabaseLogEntry is used as a value class to process existing log entries. In other words, it caches a log entry from the database and provides an immutable object-oriented representation of it. It is most commonly instantiated via
DatabaseLogEntry::newFromRow()and can be instantiated using entries from either the logging or recentchanges table.
- RCDatabaseLogEntry is a subclass of DatabaseLogEntry for objects constructed from entries in the recentchanges table (rather than the logging table).
ManualLogEntry::__construct( $type, $subtype )- subtype means logging.log_action.