Index: trunk/phase3/maintenance/rebuildImages.php |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | require_once( 'FiveUpgrade.inc' ); |
38 | 38 | |
39 | 39 | class ImageBuilder extends FiveUpgrade { |
40 | | - function ImageBuilder( $dryrun = false ) { |
| 40 | + function __construct( $dryrun = false ) { |
41 | 41 | parent::FiveUpgrade(); |
42 | 42 | |
43 | 43 | $this->maxLag = 10; # if slaves are lagged more than 10 secs, wait |
Index: trunk/phase3/maintenance/importDump.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | var $debug = false; |
40 | 40 | var $uploads = false; |
41 | 41 | |
42 | | - function BackupReader() { |
| 42 | + function __construct() { |
43 | 43 | $this->stderr = fopen( "php://stderr", "wt" ); |
44 | 44 | } |
45 | 45 | |
Index: trunk/phase3/includes/ZhClient.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | * |
14 | 14 | * @access private |
15 | 15 | */ |
16 | | - function ZhClient($host, $port) { |
| 16 | + function __construct($host, $port) { |
17 | 17 | $this->mHost = $host; |
18 | 18 | $this->mPort = $port; |
19 | 19 | $this->mConnected = $this->connect(); |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | * @todo document |
98 | 98 | * @param $article |
99 | 99 | */ |
100 | | - function EditPage( $article ) { |
| 100 | + function __construct( $article ) { |
101 | 101 | $this->mArticle =& $article; |
102 | 102 | $this->mTitle = $article->getTitle(); |
103 | 103 | $this->action = 'submit'; |
Index: trunk/phase3/includes/Revision.php |
— | — | @@ -290,7 +290,7 @@ |
291 | 291 | * @param $row Mixed: either a database row or an array |
292 | 292 | * @access private |
293 | 293 | */ |
294 | | - function Revision( $row ) { |
| 294 | + function __construct( $row ) { |
295 | 295 | if( is_object( $row ) ) { |
296 | 296 | $this->mId = intval( $row->rev_id ); |
297 | 297 | $this->mPage = intval( $row->rev_page ); |
Index: trunk/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | var $numeric_version = null; |
98 | 98 | var $mAffectedRows = null; |
99 | 99 | |
100 | | - function DatabasePostgres($server = false, $user = false, $password = false, $dbName = false, |
| 100 | + function __construct($server = false, $user = false, $password = false, $dbName = false, |
101 | 101 | $failFunction = false, $flags = 0 ) |
102 | 102 | { |
103 | 103 | |
Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -2278,7 +2278,7 @@ |
2279 | 2279 | class DBObject { |
2280 | 2280 | public $mData; |
2281 | 2281 | |
2282 | | - function DBObject($data) { |
| 2282 | + function __construct($data) { |
2283 | 2283 | $this->mData = $data; |
2284 | 2284 | } |
2285 | 2285 | |
— | — | @@ -2635,7 +2635,7 @@ |
2636 | 2636 | /** |
2637 | 2637 | * Create a new result object from a result resource and a Database object |
2638 | 2638 | */ |
2639 | | - function ResultWrapper( $database, $result ) { |
| 2639 | + function __construct( $database, $result ) { |
2640 | 2640 | $this->db = $database; |
2641 | 2641 | if ( $result instanceof ResultWrapper ) { |
2642 | 2642 | $this->result = $result->result; |
Index: trunk/phase3/includes/User.php |
— | — | @@ -178,7 +178,7 @@ |
179 | 179 | * @see newFromSession() |
180 | 180 | * @see newFromRow() |
181 | 181 | */ |
182 | | - function User() { |
| 182 | + function __construct() { |
183 | 183 | $this->clearInstanceCache( 'defaults' ); |
184 | 184 | } |
185 | 185 | |
Index: trunk/phase3/includes/Export.php |
— | — | @@ -663,7 +663,7 @@ |
664 | 664 | class DumpFileOutput extends DumpOutput { |
665 | 665 | var $handle; |
666 | 666 | |
667 | | - function DumpFileOutput( $file ) { |
| 667 | + function __construct( $file ) { |
668 | 668 | $this->handle = fopen( $file, "wt" ); |
669 | 669 | } |
670 | 670 | |
— | — | @@ -679,7 +679,7 @@ |
680 | 680 | * @ingroup Dump |
681 | 681 | */ |
682 | 682 | class DumpPipeOutput extends DumpFileOutput { |
683 | | - function DumpPipeOutput( $command, $file = null ) { |
| 683 | + function __construct( $command, $file = null ) { |
684 | 684 | if( !is_null( $file ) ) { |
685 | 685 | $command .= " > " . wfEscapeShellArg( $file ); |
686 | 686 | } |
— | — | @@ -692,8 +692,8 @@ |
693 | 693 | * @ingroup Dump |
694 | 694 | */ |
695 | 695 | class DumpGZipOutput extends DumpPipeOutput { |
696 | | - function DumpGZipOutput( $file ) { |
697 | | - parent::DumpPipeOutput( "gzip", $file ); |
| 696 | + function __construct( $file ) { |
| 697 | + parent::__construct( "gzip", $file ); |
698 | 698 | } |
699 | 699 | } |
700 | 700 | |
— | — | @@ -702,8 +702,8 @@ |
703 | 703 | * @ingroup Dump |
704 | 704 | */ |
705 | 705 | class DumpBZip2Output extends DumpPipeOutput { |
706 | | - function DumpBZip2Output( $file ) { |
707 | | - parent::DumpPipeOutput( "bzip2", $file ); |
| 706 | + function __construct( $file ) { |
| 707 | + parent::__construct( "bzip2", $file ); |
708 | 708 | } |
709 | 709 | } |
710 | 710 | |
— | — | @@ -712,12 +712,12 @@ |
713 | 713 | * @ingroup Dump |
714 | 714 | */ |
715 | 715 | class Dump7ZipOutput extends DumpPipeOutput { |
716 | | - function Dump7ZipOutput( $file ) { |
| 716 | + function __construct( $file ) { |
717 | 717 | $command = "7za a -bd -si " . wfEscapeShellArg( $file ); |
718 | 718 | // Suppress annoying useless crap from p7zip |
719 | 719 | // Unfortunately this could suppress real error messages too |
720 | 720 | $command .= ' >' . wfGetNull() . ' 2>&1'; |
721 | | - parent::DumpPipeOutput( $command ); |
| 721 | + parent::__construct( $command ); |
722 | 722 | } |
723 | 723 | } |
724 | 724 | |
— | — | @@ -730,7 +730,7 @@ |
731 | 731 | * @ingroup Dump |
732 | 732 | */ |
733 | 733 | class DumpFilter { |
734 | | - function DumpFilter( &$sink ) { |
| 734 | + function __construct( &$sink ) { |
735 | 735 | $this->sink =& $sink; |
736 | 736 | } |
737 | 737 | |
— | — | @@ -793,8 +793,8 @@ |
794 | 794 | var $invert = false; |
795 | 795 | var $namespaces = array(); |
796 | 796 | |
797 | | - function DumpNamespaceFilter( &$sink, $param ) { |
798 | | - parent::DumpFilter( $sink ); |
| 797 | + function __construct( &$sink, $param ) { |
| 798 | + parent::__construct( $sink ); |
799 | 799 | |
800 | 800 | $constants = array( |
801 | 801 | "NS_MAIN" => NS_MAIN, |
— | — | @@ -879,7 +879,7 @@ |
880 | 880 | * @ingroup Dump |
881 | 881 | */ |
882 | 882 | class DumpMultiWriter { |
883 | | - function DumpMultiWriter( $sinks ) { |
| 883 | + function __construct( $sinks ) { |
884 | 884 | $this->sinks = $sinks; |
885 | 885 | $this->count = count( $sinks ); |
886 | 886 | } |
Index: trunk/phase3/includes/LinksUpdate.php |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | * @param $parserOutput ParserOutput: output from a full parse of this page |
32 | 32 | * @param $recursive Boolean: queue jobs for recursive updates? |
33 | 33 | */ |
34 | | - function LinksUpdate( $title, $parserOutput, $recursive = true ) { |
| 34 | + function __construct( $title, $parserOutput, $recursive = true ) { |
35 | 35 | global $wgAntiLockFlags; |
36 | 36 | |
37 | 37 | if ( $wgAntiLockFlags & ALF_NO_LINK_LOCK ) { |
Index: trunk/phase3/includes/Exif.php |
— | — | @@ -620,7 +620,7 @@ |
621 | 621 | * @param $exif Array: the Exif data to format ( as returned by |
622 | 622 | * Exif::getFilteredData() ) |
623 | 623 | */ |
624 | | - function FormatExif( $exif ) { |
| 624 | + function __construct( $exif ) { |
625 | 625 | $this->mExif = $exif; |
626 | 626 | } |
627 | 627 | |
Index: trunk/phase3/includes/filerepo/ArchivedFile.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | |
31 | 31 | /**#@-*/ |
32 | 32 | |
33 | | - function ArchivedFile( $title, $id=0, $key='' ) { |
| 33 | + function __construct( $title, $id=0, $key='' ) { |
34 | 34 | $this->id = -1; |
35 | 35 | $this->title = false; |
36 | 36 | $this->name = false; |
Index: trunk/phase3/includes/search/SearchEngine.php |
— | — | @@ -847,7 +847,7 @@ |
848 | 848 | class SearchHighlighter { |
849 | 849 | var $mCleanWikitext = true; |
850 | 850 | |
851 | | - function SearchHighlighter( $cleanupWikitext = true ) { |
| 851 | + function __construct( $cleanupWikitext = true ) { |
852 | 852 | $this->mCleanWikitext = $cleanupWikitext; |
853 | 853 | } |
854 | 854 | |
Index: trunk/phase3/includes/search/SearchMySQL.php |
— | — | @@ -402,7 +402,7 @@ |
403 | 403 | * @ingroup Search |
404 | 404 | */ |
405 | 405 | class MySQLSearchResultSet extends SqlSearchResultSet { |
406 | | - function MySQLSearchResultSet( $resultSet, $terms, $totalHits=null ) { |
| 406 | + function __construct( $resultSet, $terms, $totalHits=null ) { |
407 | 407 | parent::__construct( $resultSet, $terms ); |
408 | 408 | $this->mTotalHits = $totalHits; |
409 | 409 | } |
Index: trunk/phase3/includes/search/SearchSqlite.php |
— | — | @@ -323,7 +323,7 @@ |
324 | 324 | * @ingroup Search |
325 | 325 | */ |
326 | 326 | class SqliteSearchResultSet extends SqlSearchResultSet { |
327 | | - function SqliteSearchResultSet( $resultSet, $terms, $totalHits=null ) { |
| 327 | + function __construct( $resultSet, $terms, $totalHits=null ) { |
328 | 328 | parent::__construct( $resultSet, $terms ); |
329 | 329 | $this->mTotalHits = $totalHits; |
330 | 330 | } |
Index: trunk/phase3/includes/search/SearchUpdate.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | /* private */ var $mId = 0, $mNamespace, $mTitle, $mText; |
20 | 20 | /* private */ var $mTitleWords; |
21 | 21 | |
22 | | - function SearchUpdate( $id, $title, $text = false ) { |
| 22 | + function __construct( $id, $title, $text = false ) { |
23 | 23 | $nt = Title::newFromText( $title ); |
24 | 24 | if( $nt ) { |
25 | 25 | $this->mId = $id; |
Index: trunk/phase3/includes/media/MediaTransformOutput.php |
— | — | @@ -115,7 +115,7 @@ |
116 | 116 | * @param $page Integer: page number, for multipage files |
117 | 117 | * @private |
118 | 118 | */ |
119 | | - function ThumbnailImage( $file, $url, $width, $height, $path = false, $page = false ) { |
| 119 | + function __construct( $file, $url, $width, $height, $path = false, $page = false ) { |
120 | 120 | $this->file = $file; |
121 | 121 | $this->url = $url; |
122 | 122 | # These should be integers when they get here. |
Index: trunk/phase3/includes/parser/ParserOutput.php |
— | — | @@ -123,7 +123,7 @@ |
124 | 124 | $mTOCHTML = ''; # HTML of the TOC |
125 | 125 | private $mIndexPolicy = ''; # 'index' or 'noindex'? Any other value will result in no change. |
126 | 126 | |
127 | | - function ParserOutput( $text = '', $languageLinks = array(), $categoryLinks = array(), |
| 127 | + function __construct( $text = '', $languageLinks = array(), $categoryLinks = array(), |
128 | 128 | $containsOldMagic = false, $titletext = '' ) |
129 | 129 | { |
130 | 130 | $this->mText = $text; |
Index: trunk/phase3/includes/parser/DateFormatter.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | /** |
36 | 36 | * @todo document |
37 | 37 | */ |
38 | | - function DateFormatter() { |
| 38 | + function __construct() { |
39 | 39 | global $wgContLang; |
40 | 40 | |
41 | 41 | $this->monthNames = $this->getMonthRegex(); |
Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -703,7 +703,7 @@ |
704 | 704 | * @param $file String: file which is included by execute(). It is also constructed from $name by default |
705 | 705 | * @param $includable Boolean: whether the page can be included in normal pages |
706 | 706 | */ |
707 | | - function SpecialPage( $name = '', $restriction = '', $listed = true, $function = false, $file = 'default', $includable = false ) { |
| 707 | + function __construct( $name = '', $restriction = '', $listed = true, $function = false, $file = 'default', $includable = false ) { |
708 | 708 | $this->mName = $name; |
709 | 709 | $this->mRestriction = $restriction; |
710 | 710 | $this->mListed = $listed; |
— | — | @@ -914,8 +914,8 @@ |
915 | 915 | */ |
916 | 916 | class UnlistedSpecialPage extends SpecialPage |
917 | 917 | { |
918 | | - function UnlistedSpecialPage( $name, $restriction = '', $function = false, $file = 'default' ) { |
919 | | - parent::SpecialPage( $name, $restriction, false, $function, $file ); |
| 918 | + function __construct( $name, $restriction = '', $function = false, $file = 'default' ) { |
| 919 | + parent::__construct( $name, $restriction, false, $function, $file ); |
920 | 920 | } |
921 | 921 | } |
922 | 922 | |
— | — | @@ -925,8 +925,8 @@ |
926 | 926 | */ |
927 | 927 | class IncludableSpecialPage extends SpecialPage |
928 | 928 | { |
929 | | - function IncludableSpecialPage( $name, $restriction = '', $listed = true, $function = false, $file = 'default' ) { |
930 | | - parent::SpecialPage( $name, $restriction, $listed, $function, $file, true ); |
| 929 | + function __construct( $name, $restriction = '', $listed = true, $function = false, $file = 'default' ) { |
| 930 | + parent::__construct( $name, $restriction, $listed, $function, $file, true ); |
931 | 931 | } |
932 | 932 | } |
933 | 933 | |
Index: trunk/phase3/includes/HistoryBlob.php |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | * @param $hash Strng: the content hash of the text |
159 | 159 | * @param $oldid Integer: the old_id for the CGZ object |
160 | 160 | */ |
161 | | - function HistoryBlobStub( $hash = '', $oldid = 0 ) { |
| 161 | + function __construct( $hash = '', $oldid = 0 ) { |
162 | 162 | $this->mHash = $hash; |
163 | 163 | } |
164 | 164 | |
— | — | @@ -253,7 +253,7 @@ |
254 | 254 | /** |
255 | 255 | * @param $curid Integer: the cur_id pointed to |
256 | 256 | */ |
257 | | - function HistoryBlobCurStub( $curid = 0 ) { |
| 257 | + function __construct( $curid = 0 ) { |
258 | 258 | $this->mCurId = $curid; |
259 | 259 | } |
260 | 260 | |
Index: trunk/phase3/includes/WikiError.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | * @param $message String: wiki message name |
75 | 75 | * @param ... parameters to pass to wfMsg() |
76 | 76 | */ |
77 | | - function WikiErrorMsg( $message/*, ... */ ) { |
| 77 | + function __construct( $message/*, ... */ ) { |
78 | 78 | $args = func_get_args(); |
79 | 79 | array_shift( $args ); |
80 | 80 | $this->mMessage = wfMsgReal( $message, $args, true ); |
— | — | @@ -102,7 +102,7 @@ |
103 | 103 | * @param $context |
104 | 104 | * @param $offset Int |
105 | 105 | */ |
106 | | - function WikiXmlError( $parser, $message = 'XML parsing error', $context = null, $offset = 0 ) { |
| 106 | + function __construct( $parser, $message = 'XML parsing error', $context = null, $offset = 0 ) { |
107 | 107 | $this->mXmlError = xml_get_error_code( $parser ); |
108 | 108 | $this->mColumn = xml_get_current_column_number( $parser ); |
109 | 109 | $this->mLine = xml_get_current_line_number( $parser ); |
Index: trunk/phase3/includes/diff/DifferenceEngine.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | class _DiffOp_Copy extends _DiffOp { |
43 | 43 | var $type = 'copy'; |
44 | 44 | |
45 | | - function _DiffOp_Copy ($orig, $closing = false) { |
| 45 | + function __construct ($orig, $closing = false) { |
46 | 46 | if (!is_array($closing)) |
47 | 47 | $closing = $orig; |
48 | 48 | $this->orig = $orig; |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | class _DiffOp_Delete extends _DiffOp { |
63 | 63 | var $type = 'delete'; |
64 | 64 | |
65 | | - function _DiffOp_Delete ($lines) { |
| 65 | + function __construct ($lines) { |
66 | 66 | $this->orig = $lines; |
67 | 67 | $this->closing = false; |
68 | 68 | } |
— | — | @@ -79,7 +79,7 @@ |
80 | 80 | class _DiffOp_Add extends _DiffOp { |
81 | 81 | var $type = 'add'; |
82 | 82 | |
83 | | - function _DiffOp_Add ($lines) { |
| 83 | + function __construct ($lines) { |
84 | 84 | $this->closing = $lines; |
85 | 85 | $this->orig = false; |
86 | 86 | } |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | class _DiffOp_Change extends _DiffOp { |
99 | 99 | var $type = 'change'; |
100 | 100 | |
101 | | - function _DiffOp_Change ($orig, $closing) { |
| 101 | + function __construct ($orig, $closing) { |
102 | 102 | $this->orig = $orig; |
103 | 103 | $this->closing = $closing; |
104 | 104 | } |
— | — | @@ -568,7 +568,7 @@ |
569 | 569 | * (Typically these are lines from a file.) |
570 | 570 | * @param $to_lines array An array of strings. |
571 | 571 | */ |
572 | | - function Diff($from_lines, $to_lines) { |
| 572 | + function __construct($from_lines, $to_lines) { |
573 | 573 | $eng = new _DiffEngine; |
574 | 574 | $this->edits = $eng->diff($from_lines, $to_lines); |
575 | 575 | //$this->_check($from_lines, $to_lines); |
— | — | @@ -720,14 +720,14 @@ |
721 | 721 | * @param $mapped_to_lines array This array should |
722 | 722 | * have the same number of elements as $to_lines. |
723 | 723 | */ |
724 | | - function MappedDiff($from_lines, $to_lines, |
| 724 | + function __construct($from_lines, $to_lines, |
725 | 725 | $mapped_from_lines, $mapped_to_lines) { |
726 | 726 | wfProfileIn( __METHOD__ ); |
727 | 727 | |
728 | 728 | assert(sizeof($from_lines) == sizeof($mapped_from_lines)); |
729 | 729 | assert(sizeof($to_lines) == sizeof($mapped_to_lines)); |
730 | 730 | |
731 | | - $this->Diff($mapped_from_lines, $mapped_to_lines); |
| 731 | + parent::__construct($mapped_from_lines, $mapped_to_lines); |
732 | 732 | |
733 | 733 | $xi = $yi = 0; |
734 | 734 | for ($i = 0; $i < sizeof($this->edits); $i++) { |
— | — | @@ -992,7 +992,7 @@ |
993 | 993 | * @ingroup DifferenceEngine |
994 | 994 | */ |
995 | 995 | class _HWLDF_WordAccumulator { |
996 | | - function _HWLDF_WordAccumulator () { |
| 996 | + function __construct () { |
997 | 997 | $this->_lines = array(); |
998 | 998 | $this->_line = ''; |
999 | 999 | $this->_group = ''; |
— | — | @@ -1055,13 +1055,13 @@ |
1056 | 1056 | class WordLevelDiff extends MappedDiff { |
1057 | 1057 | const MAX_LINE_LENGTH = 10000; |
1058 | 1058 | |
1059 | | - function WordLevelDiff ($orig_lines, $closing_lines) { |
| 1059 | + function __construct ($orig_lines, $closing_lines) { |
1060 | 1060 | wfProfileIn( __METHOD__ ); |
1061 | 1061 | |
1062 | 1062 | list ($orig_words, $orig_stripped) = $this->_split($orig_lines); |
1063 | 1063 | list ($closing_words, $closing_stripped) = $this->_split($closing_lines); |
1064 | 1064 | |
1065 | | - $this->MappedDiff($orig_words, $closing_words, |
| 1065 | + parent::__construct($orig_words, $closing_words, |
1066 | 1066 | $orig_stripped, $closing_stripped); |
1067 | 1067 | wfProfileOut( __METHOD__ ); |
1068 | 1068 | } |
— | — | @@ -1136,7 +1136,7 @@ |
1137 | 1137 | * @ingroup DifferenceEngine |
1138 | 1138 | */ |
1139 | 1139 | class TableDiffFormatter extends DiffFormatter { |
1140 | | - function TableDiffFormatter() { |
| 1140 | + function __construct() { |
1141 | 1141 | $this->leading_context_lines = 2; |
1142 | 1142 | $this->trailing_context_lines = 2; |
1143 | 1143 | } |
Index: trunk/phase3/includes/json/Services_JSON.php |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | * bubble up with an error, so all return values |
134 | 134 | * from encode() should be checked with isError() |
135 | 135 | */ |
136 | | - function Services_JSON($use = 0) |
| 136 | + function __construct($use = 0) |
137 | 137 | { |
138 | 138 | $this->use = $use; |
139 | 139 | } |
Index: trunk/phase3/includes/Licenses.php |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | * |
168 | 168 | * @param $str String: license name?? |
169 | 169 | */ |
170 | | - function License( $str ) { |
| 170 | + function __construct( $str ) { |
171 | 171 | list( $text, $template ) = explode( '|', strrev( $str ), 2 ); |
172 | 172 | |
173 | 173 | $this->template = strrev( $template ); |
Index: trunk/phase3/includes/specials/SpecialFileDuplicateSearch.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | class FileDuplicateSearchPage extends QueryPage { |
33 | 33 | var $hash, $filename; |
34 | 34 | |
35 | | - function FileDuplicateSearchPage( $hash, $filename ) { |
| 35 | + function __construct( $hash, $filename ) { |
36 | 36 | $this->hash = $hash; |
37 | 37 | $this->filename = $filename; |
38 | 38 | } |
Index: trunk/phase3/includes/specials/SpecialUncategorizedcategories.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | * @ingroup SpecialPage |
29 | 29 | */ |
30 | 30 | class UncategorizedCategoriesPage extends UncategorizedPagesPage { |
31 | | - function UncategorizedCategoriesPage() { |
| 31 | + function __construct() { |
32 | 32 | $this->requestedNamespace = NS_CATEGORY; |
33 | 33 | } |
34 | 34 | |
Index: trunk/phase3/includes/specials/SpecialMIMEsearch.php |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | class MIMEsearchPage extends QueryPage { |
32 | 32 | var $major, $minor; |
33 | 33 | |
34 | | - function MIMEsearchPage( $major, $minor ) { |
| 34 | + function __construct( $major, $minor ) { |
35 | 35 | $this->major = $major; |
36 | 36 | $this->minor = $minor; |
37 | 37 | } |
Index: trunk/phase3/includes/specials/SpecialWantedpages.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | class WantedPagesPage extends WantedQueryPage { |
31 | 31 | var $nlinks; |
32 | 32 | |
33 | | - function WantedPagesPage( $inc = false, $nlinks = true ) { |
| 33 | + function __construct( $inc = false, $nlinks = true ) { |
34 | 34 | $this->setListoutput( $inc ); |
35 | 35 | $this->nlinks = $nlinks; |
36 | 36 | } |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | * @param $request WebRequest: a WebRequest object passed by reference |
70 | 70 | * @param $par String: subpage parameter |
71 | 71 | */ |
72 | | - function LoginForm( &$request, $par = '' ) { |
| 72 | + function __construct( &$request, $par = '' ) { |
73 | 73 | global $wgAuth, $wgHiddenPrefs, $wgEnableEmail, $wgRedirectOnLogin; |
74 | 74 | |
75 | 75 | $this->mType = ( $par == 'signup' ) ? $par : $request->getText( 'type' ); # Check for [[Special:Userlogin/signup]] |
Index: trunk/phase3/profileinfo.php |
— | — | @@ -83,7 +83,7 @@ |
84 | 84 | var $time; |
85 | 85 | var $children; |
86 | 86 | |
87 | | - function profile_point( $name, $count, $time, $memory ) { |
| 87 | + function __construct( $name, $count, $time, $memory ) { |
88 | 88 | $this->name = $name; |
89 | 89 | $this->count = $count; |
90 | 90 | $this->time = $time; |
Index: trunk/phase3/languages/Language.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | */ |
40 | 40 | class FakeConverter { |
41 | 41 | var $mLang; |
42 | | - function FakeConverter( $langobj ) { $this->mLang = $langobj; } |
| 42 | + function __construct( $langobj ) { $this->mLang = $langobj; } |
43 | 43 | function autoConvertToAllVariants( $text ) { return array( $this->mLang->getCode() => $text ); } |
44 | 44 | function convert( $t ) { return $t; } |
45 | 45 | function convertTitle( $t ) { return $t->getPrefixedText(); } |