MediaWiki
REL1_19
|
00001 <?php 00034 class WantedTemplatesPage extends WantedQueryPage { 00035 00036 function __construct( $name = 'Wantedtemplates' ) { 00037 parent::__construct( $name ); 00038 } 00039 00040 function getQueryInfo() { 00041 return array ( 00042 'tables' => array ( 'templatelinks', 'page' ), 00043 'fields' => array ( 'tl_namespace AS namespace', 00044 'tl_title AS title', 00045 'COUNT(*) AS value' ), 00046 'conds' => array ( 'page_title IS NULL', 00047 'tl_namespace' => NS_TEMPLATE ), 00048 'options' => array ( 00049 'GROUP BY' => 'tl_namespace, tl_title' ), 00050 'join_conds' => array ( 'page' => array ( 'LEFT JOIN', 00051 array ( 'page_namespace = tl_namespace', 00052 'page_title = tl_title' ) ) ) 00053 ); 00054 } 00055 }