@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | * any database records (like pages), as this locale will be attached |
285 | 285 | * to all new records. |
286 | 286 | * |
287 | - * @param $locale String |
|
287 | + * @param string $locale String |
|
288 | 288 | */ |
289 | 289 | static function set_default_locale($locale) { |
290 | 290 | if($locale && !i18n::validate_locale($locale)) { |
@@ -318,7 +318,6 @@ discard block |
||
318 | 318 | * to "auto-filter" all SELECT queries by this language. |
319 | 319 | * See {@link disable_locale_filter()} on how to override this behaviour temporarily. |
320 | 320 | * |
321 | - * @param string $lang New reading language. |
|
322 | 321 | */ |
323 | 322 | static function set_current_locale($locale) { |
324 | 323 | if($locale && !i18n::validate_locale($locale)) { |
@@ -363,8 +362,6 @@ discard block |
||
363 | 362 | * @param string $join A single join clause. This can be used for filtering, only 1 |
364 | 363 | * instance of each DataObject will be returned. |
365 | 364 | * @param string $limit A limit expression to be inserted into the LIMIT clause. |
366 | - * @param string $containerClass The container class to return the results in. |
|
367 | - * @param string $having A filter to be inserted into the HAVING clause. |
|
368 | 365 | * @return mixed The objects matching the conditions. |
369 | 366 | */ |
370 | 367 | static function get_by_locale($class, $locale, $filter = '', $sort = '', $join = "", $limit = "") { |
@@ -601,7 +598,7 @@ discard block |
||
601 | 598 | * Check if a given SQLQuery filters on the Locale field |
602 | 599 | * |
603 | 600 | * @param SQLQuery $query |
604 | - * @return boolean |
|
601 | + * @return boolean|null |
|
605 | 602 | */ |
606 | 603 | protected function filtersOnLocale($query) { |
607 | 604 | foreach($query->getWhere() as $condition) { |
@@ -1527,7 +1524,7 @@ discard block |
||
1527 | 1524 | } |
1528 | 1525 | |
1529 | 1526 | /** |
1530 | - * @return boolean |
|
1527 | + * @return null|false |
|
1531 | 1528 | */ |
1532 | 1529 | function canEdit($member) { |
1533 | 1530 | if(!$this->owner->Locale) return null; |