MediaWiki
REL1_21
|
00001 <?php 00029 class AncientPagesPage extends QueryPage { 00030 00031 function __construct( $name = 'Ancientpages' ) { 00032 parent::__construct( $name ); 00033 } 00034 00035 function isExpensive() { 00036 return true; 00037 } 00038 00039 function isSyndicated() { 00040 return false; 00041 } 00042 00043 function getQueryInfo() { 00044 return array( 00045 'tables' => array( 'page', 'revision' ), 00046 'fields' => array( 'namespace' => 'page_namespace', 00047 'title' => 'page_title', 00048 'value' => 'rev_timestamp' ), 00049 'conds' => array( 'page_namespace' => MWNamespace::getContentNamespaces(), 00050 'page_is_redirect' => 0, 00051 'page_latest=rev_id' ) 00052 ); 00053 } 00054 00055 function usesTimestamps() { 00056 return true; 00057 } 00058 00059 function sortDescending() { 00060 return false; 00061 } 00062 00063 function formatResult( $skin, $result ) { 00064 global $wgContLang; 00065 00066 $d = $this->getLanguage()->userTimeAndDate( $result->value, $this->getUser() ); 00067 $title = Title::makeTitle( $result->namespace, $result->title ); 00068 $link = Linker::linkKnown( 00069 $title, 00070 htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) 00071 ); 00072 return $this->getLanguage()->specialList( $link, htmlspecialchars( $d ) ); 00073 } 00074 00075 protected function getGroupName() { 00076 return 'maintenance'; 00077 } 00078 }