Handbuch:LogEntry.php
Diese Seite ist veraltet. |
MediaWiki-Datei: LogEntry.php | |
---|---|
Speicherort: | includes/logging/ |
Quellcode: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Klassen: | LogEntry |
Details
LogEntry.php contains classes for dealing with individual log entries. It has the interface LogEntry, the abstract class LogEntryBase, and the classes DatabaseLogEntry, RCDatabaseLogEntry, and ManualLogEntry.
Klassen
- 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 thelogging
table).
Methoden
ManualLogEntry::__construct( $type, $subtype )
—subtype
means logging.log_action.