<?php
/**
- *
- *
- * Created on Dec 22, 2010
- *
* Copyright © 2010 Roan Kattouw "<Firstname>.<Lastname>@gmail.com"
*
* This program is free software; you can redistribute it and/or modify
}
/**
- * @param ApiPageSet $resultPageSet
+ * @param ApiPageSet|null $resultPageSet
*/
public function run( $resultPageSet = null ) {
$params = $this->extractRequestParams();
$result = $this->getResult();
- /** @var $qp QueryPage */
+ /** @var QueryPage $qp */
$qp = new $this->qpMap[$params['page']]();
if ( !$qp->userCanExecute( $this->getUser() ) ) {
$this->dieWithError( 'apierror-specialpage-cantexecute' );
}
public function getCacheMode( $params ) {
- /** @var $qp QueryPage */
+ /** @var QueryPage $qp */
$qp = new $this->qpMap[$params['page']]();
if ( $qp->getRestriction() != '' ) {
return 'private';