MediaWiki  REL1_24
SpecialWantedtemplates.php
Go to the documentation of this file.
00001 <?php
00034 class WantedTemplatesPage extends WantedQueryPage {
00035     function __construct( $name = 'Wantedtemplates' ) {
00036         parent::__construct( $name );
00037     }
00038 
00039     function getQueryInfo() {
00040         return array(
00041             'tables' => array( 'templatelinks', 'page' ),
00042             'fields' => array(
00043                 'namespace' => 'tl_namespace',
00044                 'title' => 'tl_title',
00045                 'value' => 'COUNT(*)'
00046             ),
00047             'conds' => array(
00048                 'page_title IS NULL',
00049                 'tl_namespace' => NS_TEMPLATE
00050             ),
00051             'options' => array( 'GROUP BY' => array( 'tl_namespace', 'tl_title' ) ),
00052             'join_conds' => array( 'page' => array( 'LEFT JOIN',
00053                 array( 'page_namespace = tl_namespace',
00054                     'page_title = tl_title' ) ) )
00055         );
00056     }
00057 
00058     protected function getGroupName() {
00059         return 'maintenance';
00060     }
00061 }