last round of PHP5 stuff for now.
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 11 May 2006 21:07:41 +0000 (21:07 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 11 May 2006 21:07:41 +0000 (21:07 +0000)
includes/SpecialBooksources.php
includes/SpecialImport.php
includes/SpecialListusers.php
includes/SpecialUndelete.php
includes/User.php

index 960f622..a4a899f 100644 (file)
@@ -29,7 +29,7 @@ function wfSpecialBooksources( $par ) {
  * @subpackage SpecialPage
  */
 class BookSourceList {
-       var $mIsbn;
+       private $mIsbn;
 
        function BookSourceList( $isbn ) {
                $this->mIsbn = $isbn;
index 91abcea..d61b351 100644 (file)
@@ -121,14 +121,15 @@ function wfSpecialImport( $page = '' ) {
  * @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 );
@@ -248,10 +249,11 @@ class WikiRevision {
  * @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" ) );
index 028665c..a3db1a7 100644 (file)
@@ -41,8 +41,10 @@ require_once('QueryPage.php');
  * @subpackage SpecialPage
  */
 class ListUsersPage extends QueryPage {
-       var $requestedGroup = '';
-       var $requestedUser = '';
+       // Variables used by constructor
+       public
+               $requestedGroup = '',
+               $requestedUser = '' ;
 
        function getName() {
                return 'Listusers';
index 541d7aa..feaaef4 100644 (file)
@@ -27,7 +27,8 @@ function wfSpecialUndelete( $par ) {
  * @subpackage SpecialPage
  */
 class PageArchive {
-       var $title;
+       public
+               $title;
 
        function PageArchive( &$title ) {
                if( is_null( $title ) ) {
@@ -308,8 +309,15 @@ class PageArchive {
  * @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;
index 5879a7e..c6e2252 100644 (file)
@@ -61,7 +61,7 @@ class User {
         * @return User
         * @static
         */
-       function newFromName( $name ) {
+       static function newFromName( $name ) {
                # Force usernames to capital
                global $wgContLang;
                $name = $wgContLang->ucfirst( $name );