| MediaWiki file: LogEntry.php | |
|---|---|
| Location: | includes/logging/ | 
| Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 | 
| Classes: | 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.
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 recentchanges table (rather than the logging table).
Methods
- ManualLogEntry::__construct( $type, $subtype )—- subtypemeans logging.log_action.
See also
- Manual:Logging table
- Manual:LogPage.php
- Manual:ManualLogEntry.php
- Manual:DatabaseLogEntry.php
- Manual:RCDatabaseLogEntry.php
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.