MediaWiki  REL1_22
SpecialWantedtemplates.php
Go to the documentation of this file.
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( 'namespace' => 'tl_namespace',
00044                     'title' => 'tl_title',
00045                     'value' => 'COUNT(*)' ),
00046             'conds' => array( 'page_title IS NULL',
00047                     'tl_namespace' => NS_TEMPLATE ),
00048             'options' => array(
00049                 'GROUP BY' => array( '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 
00056     protected function getGroupName() {
00057         return 'maintenance';
00058     }
00059 }