Index: trunk/extensions/MWSearch/MWSearchUpdater.php |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | * @return bool |
21 | 21 | * @static |
22 | 22 | */ |
23 | | - function updatePage( $dbname, $title, $text ) { |
| 23 | + static function updatePage( $dbname, $title, $text ) { |
24 | 24 | return MWSearchUpdater::sendRPC( 'searchupdater.updatePage', |
25 | 25 | array( $dbname, $title, $text ) ); |
26 | 26 | } |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | * @return bool |
37 | 37 | * @static |
38 | 38 | */ |
39 | | - function updatePageData( $dbname, $title, $text, $metadata ) { |
| 39 | + static function updatePageData( $dbname, $title, $text, $metadata ) { |
40 | 40 | $translated = array(); |
41 | 41 | foreach( $metadata as $pair ) { |
42 | 42 | list( $key, $value ) = explode( '=', $pair, 2 ); |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | * @return bool |
55 | 55 | * @static |
56 | 56 | */ |
57 | | - function deletePage( $dbname, $title ) { |
| 57 | + static function deletePage( $dbname, $title ) { |
58 | 58 | return MWSearchUpdater::sendRPC( 'searchupdater.deletePage', |
59 | 59 | array( $dbname, $title ) ); |
60 | 60 | } |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | * @return string |
65 | 65 | * @static |
66 | 66 | */ |
67 | | - function getStatus() { |
| 67 | + static function getStatus() { |
68 | 68 | return MWSearchUpdater::sendRPC( 'searchupdater.getStatus' ); |
69 | 69 | } |
70 | 70 | |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | * @return bool |
74 | 74 | * @static |
75 | 75 | */ |
76 | | - function start() { |
| 76 | + static function start() { |
77 | 77 | return MWSearchUpdater::sendRPC( 'searchupdater.start' ); |
78 | 78 | } |
79 | 79 | |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | * @return bool |
83 | 83 | * @static |
84 | 84 | */ |
85 | | - function stop() { |
| 85 | + static function stop() { |
86 | 86 | return MWSearchUpdater::sendRPC( 'searchupdater.stop' ); |
87 | 87 | } |
88 | 88 | |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | * @return bool |
92 | 92 | * @static |
93 | 93 | */ |
94 | | - function quit() { |
| 94 | + static function quit() { |
95 | 95 | return MWSearchUpdater::sendRPC( 'searchupdater.quit' ); |
96 | 96 | } |
97 | 97 | |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | * @return bool |
102 | 102 | * @static |
103 | 103 | */ |
104 | | - function flushAll() { |
| 104 | + static function flushAll() { |
105 | 105 | return MWSearchUpdater::sendRPC( 'searchupdater.flushAll' ); |
106 | 106 | } |
107 | 107 | |
— | — | @@ -111,7 +111,7 @@ |
112 | 112 | * @return bool |
113 | 113 | * @static |
114 | 114 | */ |
115 | | - function optimize() { |
| 115 | + static function optimize() { |
116 | 116 | return MWSearchUpdater::sendRPC( 'searchupdater.optimize' ); |
117 | 117 | } |
118 | 118 | |
— | — | @@ -121,7 +121,7 @@ |
122 | 122 | * @return bool |
123 | 123 | * @static |
124 | 124 | */ |
125 | | - function flush( $dbname ) { |
| 125 | + static function flush( $dbname ) { |
126 | 126 | return MWSearchUpdater::sendRPC( 'searchupdater.flush', |
127 | 127 | array( $dbname ) ); |
128 | 128 | } |
— | — | @@ -130,7 +130,7 @@ |
131 | 131 | * @access private |
132 | 132 | * @static |
133 | 133 | */ |
134 | | - function outParam( $param ) { |
| 134 | + static function outParam( $param ) { |
135 | 135 | if( $param instanceof Title ) { |
136 | 136 | return new XML_RPC_Value( |
137 | 137 | array( |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | * @access private |
160 | 160 | * @static |
161 | 161 | */ |
162 | | - function sendRPC( $method, $params=array() ) { |
| 162 | + static function sendRPC( $method, $params=array() ) { |
163 | 163 | global $mwSearchUpdateHost, $mwSearchUpdatePort, $mwSearchUpdateDebug; |
164 | 164 | $client = new XML_RPC_Client( '/SearchUpdater', $mwSearchUpdateHost, $mwSearchUpdatePort ); |
165 | 165 | if( $mwSearchUpdateDebug ) { |