* @subpackage SpecialPage
*/
class BookSourceList {
- var $mIsbn;
+ private $mIsbn;
function BookSourceList( $isbn ) {
$this->mIsbn = $isbn;
* @subpackage SpecialPage
*/
class WikiRevision {
- var $title = NULL;
- var $id = 0;
- var $timestamp = "20010115000000";
- var $user = 0;
- var $user_text = "";
- var $text = "";
- var $comment = "";
- var $minor = false;
+ private
+ $comment = '',
+ $id = 0,
+ $minor = false,
+ $text = '',
+ $timestamp = '20010115000000',
+ $title = NULL,
+ $user = 0,
+ $user_text = '' ;
function setTitle( $text ) {
$this->title = Title::newFromText( $text );
* @subpackage SpecialPage
*/
class WikiImporter {
- var $mSource = null;
- var $mPageCallback = null;
- var $mRevisionCallback = null;
- var $lastfield;
+ private
+ $lastfield,
+ $mPageCallback = null,
+ $mRevisionCallback = null,
+ $mSource = null ;
function WikiImporter( $source ) {
$this->setRevisionCallback( array( &$this, "importRevision" ) );
* @subpackage SpecialPage
*/
class ListUsersPage extends QueryPage {
- var $requestedGroup = '';
- var $requestedUser = '';
+ // Variables used by constructor
+ public
+ $requestedGroup = '',
+ $requestedUser = '' ;
function getName() {
return 'Listusers';
* @subpackage SpecialPage
*/
class PageArchive {
- var $title;
+ public
+ $title;
function PageArchive( &$title ) {
if( is_null( $title ) ) {
* @subpackage SpecialPage
*/
class UndeleteForm {
- var $mAction, $mTarget, $mTimestamp, $mRestore, $mTargetObj;
- var $mTargetTimestamp, $mAllowed, $mComment;
+ private
+ $mAction,
+ $mAllowed,
+ $mComment,
+ $mRestore,
+ $mTarget,
+ $mTargetObj,
+ $mTargetTimestamp,
+ $mTimestamp ;
function UndeleteForm( &$request, $par = "" ) {
global $wgUser;
* @return User
* @static
*/
- function newFromName( $name ) {
+ static function newFromName( $name ) {
# Force usernames to capital
global $wgContLang;
$name = $wgContLang->ucfirst( $name );