Manual:LogEntry.php/pt-br

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:LogEntry.php and the translation is 50% complete.
Other languages:
English • ‎español • ‎français • ‎polski • ‎português do Brasil • ‎беларуская (тарашкевіца)‎ • ‎日本語

Details

O arquivo LogEntry.php contém classes para lidar com entradas de log individuais. Contém a interface LogEntry, a classe abstrata LogEntryBase, e as classes DatabaseLogEntry, RCDatabaseLogEntry e ManualLogEntry. 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).

Métodos

  • ManualLogEntry::__construct( $type, $subtype ) - onde subtype significa logging.log_action.

See also