Jump to content
MediaWiki

Manual:LogEntry.php

From mediawiki.org
This page is outdated.
It was written for an older version of MediaWiki and may not apply to the most recent version. If you have checked or updated this page and found the content to be suitable, please remove this notice. See the talk page for a possible discussion on this.
MediaWiki file: LogEntry.php
Location: includes/logging/
Source code: master1.44.21.43.51.39.15
Classes: LogEntry

Details

[edit ]

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

[edit ]
  • 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

[edit ]

See also

[edit ]

AltStyle によって変換されたページ (->オリジナル) /