Index: trunk/extensions/SemanticTasks/SemanticTasks.classes.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | return true; |
67 | 67 | } |
68 | 68 | |
69 | | - function mailAssignees( $article, $text, $user, $status ) { |
| 69 | + static function mailAssignees( $article, $text, $user, $status ) { |
70 | 70 | self::printDebug( "Saved assignees:", self::$task_assignees ); |
71 | 71 | self::printDebug( "Saved task status: " . self::$task_status ); |
72 | 72 | |
— | — | @@ -125,7 +125,7 @@ |
126 | 126 | * Returns an array of properties based on $query_word |
127 | 127 | * @param $query_word String: the property that designate the users to notify. |
128 | 128 | */ |
129 | | - function getAssignees( $query_word, $title_text, $user ) { |
| 129 | + static function getAssignees( $query_word, $title_text, $user ) { |
130 | 130 | // Array of assignees to return |
131 | 131 | $assignee_arr = array(); |
132 | 132 | |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | * Returns an array of properties based on $query_word |
160 | 160 | * @param $query_word String: the property that designate the users to notify. |
161 | 161 | */ |
162 | | - function getStatus( $query_word, $title_text, $user ) { |
| 162 | + static function getStatus( $query_word, $title_text, $user ) { |
163 | 163 | // Array of assignees to return |
164 | 164 | $assignee_arr = array(); |
165 | 165 | |
— | — | @@ -237,7 +237,7 @@ |
238 | 238 | return $assignee_arr; |
239 | 239 | } |
240 | 240 | |
241 | | - function getAssigneeAddresses( $assignees ) { |
| 241 | + static function getAssigneeAddresses( $assignees ) { |
242 | 242 | $assignee_arr = array(); |
243 | 243 | foreach ( $assignees as $assignee_name ) { |
244 | 244 | $assignee = User::newFromName( $assignee_name ); |
— | — | @@ -326,7 +326,7 @@ |
327 | 327 | * @param $display_title Boolean : add the page title in the result |
328 | 328 | * @return TODO |
329 | 329 | */ |
330 | | - function getQueryResults( $query_string, $properties_to_display, $display_title ) { |
| 330 | + static function getQueryResults( $query_string, $properties_to_display, $display_title ) { |
331 | 331 | // i18n |
332 | 332 | wfLoadExtensionMessages( 'SemanticTasks' ); |
333 | 333 | |
— | — | @@ -424,7 +424,7 @@ |
425 | 425 | * @param string $debugVal |
426 | 426 | * @access private |
427 | 427 | */ |
428 | | - function printDebug( $debugText, $debugArr = null ) { |
| 428 | + static function printDebug( $debugText, $debugArr = null ) { |
429 | 429 | global $wgSemanticTasksDebug; |
430 | 430 | |
431 | 431 | if ( $wgSemanticTasksDebug ) { |
— | — | @@ -436,4 +436,4 @@ |
437 | 437 | } |
438 | 438 | } |
439 | 439 | } |
440 | | -} |
| 440 | +} |
\ No newline at end of file |