Manual:LogEntry.php
Appearance
このページは直近の情報を反映していません。 |
| MediaWiki ファイル: LogEntry.php | |
|---|---|
| 場所: | includes/logging/ (1.46 以降は includes/Logging/) |
| ソース コード: | master • 1.46.2 • 1.45.6 • 1.43.11 |
| クラス: | LogEntry |
詳細
LogEntry.php は、個別の記録エントリを扱うクラスを含んでいます。 It has the interface LogEntry, the abstract class LogEntryBase, and the classes DatabaseLogEntry, RCDatabaseLogEntry, and ManualLogEntry.
クラス
- 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 )—subtypeの意味はlogging.log_actionです。