Jump to content

Manual:HistoryAction.php

From mediawiki.org
This page is a translated version of the page Manual:HistoryAction.php and the translation is 50% complete.
Outdated translations are marked like this.

O arquivo HistoryAction.php contém a classe HistoryAction, que lida com a impressão do histórico de página para um artigo. A fim de ser eficaz, ele utiliza marcas de tempo, em vez de deslocamentos para paginação, para evitar as consultas LIMIT,offset dispendiosas. Ele também contém a classe HistoryPager. In order to be efficient, it uses timestamps rather than offsets for paging, to avoid costly LIMIT, offset queries. It also contains the HistoryPager class. Construct it by passing in an Article , and call $h->history() to print the history.

Métodos

  • HistoryPager ::historyLine( $row, $next, $notificationtimestamp = false, $latest = false, $firstInList = false ) - retorna uma linha a partir da impressão do histórico