示例#1
0
 public function __construct($mode)
 {
     if ($this instanceof SpecialPage) {
         parent::__construct('ApprovedRevs');
     }
     $this->mMode = $mode;
 }
 function __construct($name = 'Newcontributors')
 {
     parent::__construct($name);
     list($limit, $offset) = wfCheckLimits();
     $this->limit = $limit;
     $this->offset = $offset;
 }
示例#3
0
 function __construct($name = 'Filters')
 {
     // Backwards compatibility for pre-version 1.18.
     if ($this instanceof SpecialPage) {
         parent::__construct($name);
     }
 }
示例#4
0
 public function __construct($name = 'Forms')
 {
     // For MW 1.17
     if ($this instanceof SpecialPage) {
         parent::__construct($name);
     }
 }
 public function __construct($mode)
 {
     if ($this instanceof SpecialPage) {
         parent::__construct($this->specialpage);
     }
     $this->mMode = $mode;
 }
 function __construct($name = 'MediaStatistics')
 {
     parent::__construct($name);
     // Generally speaking there is only a small number of file types,
     // so just show all of them.
     $this->limit = 5000;
     $this->shownavigation = false;
 }
 function reallyDoQuery($limit, $offset = false)
 {
     if ($this->suppressSqlOffset) {
         // Bug #27678: Do not use offset here, because it was already used in
         // search perfomed by execute method
         return parent::reallyDoQuery($limit, false);
     } else {
         return parent::reallyDoQuery($limit, $offset);
     }
 }
 function feedItemDesc($row)
 {
     if (isset($row->rev_id)) {
         $revision = Revision::newFromId($row->rev_id);
         if ($revision) {
             return '<p>' . htmlspecialchars(wfMsg('summary')) . ': ' . $text . "</p>\n<hr />\n<div>" . nl2br(htmlspecialchars($revision->getText())) . "</div>";
         }
     }
     return parent::feedItemDesc($row);
 }
 /**
  * Initialize all query page objects
  */
 function __construct()
 {
     parent::__construct();
     foreach (QueryPage::getPages() as $page) {
         $class = $page[0];
         if (!in_array($class, $this->manualTest)) {
             $this->queryPages[$class] = new $class();
         }
     }
 }
示例#10
0
 function execute($par)
 {
     $mime = $par ? $par : $this->getRequest()->getText('mime');
     $this->setHeaders();
     $this->outputHeader();
     $this->getOutput()->addHTML(Xml::openElement('form', array('id' => 'specialmimesearch', 'method' => 'get', 'action' => SpecialPage::getTitleFor('MIMEsearch')->getLocalUrl())) . Xml::openElement('fieldset') . Html::hidden('title', SpecialPage::getTitleFor('MIMEsearch')->getPrefixedText()) . Xml::element('legend', null, wfMsg('mimesearch')) . Xml::inputLabel(wfMsg('mimetype'), 'mime', 'mime', 20, $mime) . ' ' . Xml::submitButton(wfMsg('ilsubmit')) . Xml::closeElement('fieldset') . Xml::closeElement('form'));
     list($this->major, $this->minor) = File::splitMime($mime);
     if ($this->major == '' || $this->minor == '' || $this->minor == 'unknown' || !self::isValidType($this->major)) {
         return;
     }
     parent::execute($par);
 }
 public function __construct(ApiQuery $query, $moduleName)
 {
     parent::__construct($query, $moduleName, 'qp');
     // Build mapping from special page names to QueryPage classes
     $uselessQueryPages = $this->getConfig()->get('APIUselessQueryPages');
     $this->qpMap = array();
     foreach (QueryPage::getPages() as $page) {
         if (!in_array($page[1], $uselessQueryPages)) {
             $this->qpMap[$page[1]] = $page[0];
         }
     }
 }
 function __construct($name = 'Mostinterwikis')
 {
     parent::__construct($name);
 }
 function __construct($name = 'ListDuplicatedFiles')
 {
     parent::__construct($name);
 }
示例#14
0
 public function __construct($name = 'Templates')
 {
     parent::__construct($name);
 }
 function __construct($name = 'Unwatchedpages')
 {
     parent::__construct($name, 'unwatchedpages');
 }
 public function __construct($name = 'CrossNamespaceLinks')
 {
     parent::__construct($name);
 }
示例#17
0
 public function execute($par)
 {
     $this->mime = $par ? $par : $this->getRequest()->getText('mime');
     $this->mime = trim($this->mime);
     list($this->major, $this->minor) = File::splitMime($this->mime);
     if ($this->major == '' || $this->minor == '' || $this->minor == 'unknown' || !self::isValidType($this->major)) {
         $this->setHeaders();
         $this->outputHeader();
         $this->getPageHeader();
         return;
     }
     parent::execute($par);
 }
 function getList()
 {
     list($limit, $offset) = wfCheckLimits();
     $this->limit = $limit;
     $this->offset = $offset;
     parent::execute('');
 }
示例#19
0
 function __construct($name = 'Mostlinked')
 {
     parent::__construct($name);
 }
	function __construct( $name = 'PagesWithoutScans' ) {
		parent::__construct( $name );
		$this->page_namespace = wfMsgForContent( 'proofreadpage_namespace' );
	}
示例#21
0
 function __construct($name = 'Shortpages')
 {
     parent::__construct($name);
 }
 function __construct($name = 'DoubleRedirects')
 {
     parent::__construct($name);
 }
 function __construct($name = 'Mostcategories')
 {
     parent::__construct($name);
 }
 public function __construct($name = 'Forms')
 {
     parent::__construct($name);
 }
示例#25
0
 function __construct($name = 'Listredirects')
 {
     parent::__construct($name);
 }
示例#26
0
 /**
  * Override to check query validity.
  */
 function doQuery($offset = false, $limit = false)
 {
     list($this->mMungedQuery, ) = LinkSearchPage::mungeQuery($this->mQuery, $this->mProt);
     if ($this->mMungedQuery === false) {
         $this->getOutput()->addWikiMsg('linksearch-error');
     } else {
         // For debugging
         // Generates invalid xhtml with patterns that contain --
         //$this->getOutput()->addHTML( "\n<!-- " . htmlspecialchars( $this->mMungedQuery ) . " -->\n" );
         parent::doQuery($offset, $limit);
     }
 }
 public function onSubmit($data, $form)
 {
     $this->propName = $data['propname'];
     parent::execute($data['propname']);
 }
 function __construct($name = 'Unusedcategories')
 {
     parent::__construct($name);
 }
 function __construct($name = 'BrokenRedirects')
 {
     parent::__construct($name);
 }
 function __construct($name = 'FileDuplicateSearch')
 {
     parent::__construct($name);
 }