手册:LogEntry.php
Appearance
此頁面已过时。 |
| MediaWiki文件: LogEntry.php | |
|---|---|
| 位置: | includes/logging/ (includes/Logging/ in 1.46 or later) |
| 源代码: | master • 1.45.1 • 1.44. • 1.39.16 |
| 类: | LogEntry |
细节
LogEntry.php包含用于处理单个日志条目的类。 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).
方法
ManualLogEntry::__construct( $type, $subtype )—subtypemeans logging.log_action.