Manual talk:LogEntry.php
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Classes
@Nikerabbit and Matma Rex: Could someone explain what the purpose of the 3 different LogEntry classes are: DatabaseLogEntry, RCDatabaseLogEntry, and ManualLogEntry? Kaldari (talk) 22:14, 26 April 2018 (UTC)
- You use ManualLogEntry for creating new log entries and then insert them to database. DatabaseLogEntry is immutable and you can easily construct it with newFromRow. It is used as a value class to process log entries. I suppose RCDatabaseLogEntry is similar but can be constructed from fields selected from the recent changes table. Nikerabbit (talk) 06:06, 27 April 2018 (UTC)
- Thanks. I've updated the documentation based on your descriptions. Feel free to tweak further. Kaldari (talk) 17:55, 29 April 2018 (UTC)