Kézikönyv:LogEntry.php
Appearance
Ez a lap elavult. |
| MediaWiki-fájl: LogEntry.php | |
|---|---|
| Könyvtár: | includes/logging/ (includes/Logging/ in 1.46 or later) |
| Forráskód: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Osztályok: | LogEntry |
Részletek
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.
Osztályok
- 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).
Metódusok
ManualLogEntry::__construct( $type, $subtype )— Asubtypejelentése logging.log_action.