Manual:LogEntry.php
Appearance
Esta página está desactualizada. |
| Archivo de MediaWiki: LogEntry.php | |
|---|---|
| Ubicación: | includes/logging/ (includes/Logging/ en 1.46 o posterior) |
| Código fuente: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Clases: | LogEntry |
Details
LogEntry.php contiene clases para lidiar con entradas individuales de registro. It has the interface LogEntry, the abstract class LogEntryBase, and the classes DatabaseLogEntry, RCDatabaseLogEntry, and ManualLogEntry.
Classes
- 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
recentchangestable (rather than theloggingtable).
Métodos
ManualLogEntry::__construct( $type, $subtype )—subtypemeans logging.log_action.