@@ -2397,6 +2397,7 @@ discard block |
||
| 2397 | 2397 | |
| 2398 | 2398 | /** |
| 2399 | 2399 | * {@inheritdoc} |
| 2400 | + * @param string $field |
|
| 2400 | 2401 | */ |
| 2401 | 2402 | public function castingHelper($field) |
| 2402 | 2403 | { |
@@ -2502,7 +2503,7 @@ discard block |
||
| 2502 | 2503 | * </code> |
| 2503 | 2504 | * |
| 2504 | 2505 | * @param string $methodName Method on the same object, e.g. {@link canEdit()} |
| 2505 | - * @param Member|int $member |
|
| 2506 | + * @param null|Member $member |
|
| 2506 | 2507 | * @param array $context Optional context |
| 2507 | 2508 | * @return boolean|null |
| 2508 | 2509 | */ |
@@ -2525,7 +2526,7 @@ discard block |
||
| 2525 | 2526 | |
| 2526 | 2527 | /** |
| 2527 | 2528 | * @param Member $member |
| 2528 | - * @return boolean |
|
| 2529 | + * @return boolean|string |
|
| 2529 | 2530 | */ |
| 2530 | 2531 | public function canView($member = null) |
| 2531 | 2532 | { |
@@ -2538,7 +2539,7 @@ discard block |
||
| 2538 | 2539 | |
| 2539 | 2540 | /** |
| 2540 | 2541 | * @param Member $member |
| 2541 | - * @return boolean |
|
| 2542 | + * @return boolean|string |
|
| 2542 | 2543 | */ |
| 2543 | 2544 | public function canEdit($member = null) |
| 2544 | 2545 | { |
@@ -2551,7 +2552,7 @@ discard block |
||
| 2551 | 2552 | |
| 2552 | 2553 | /** |
| 2553 | 2554 | * @param Member $member |
| 2554 | - * @return boolean |
|
| 2555 | + * @return boolean|string |
|
| 2555 | 2556 | */ |
| 2556 | 2557 | public function canDelete($member = null) |
| 2557 | 2558 | { |
@@ -2566,7 +2567,7 @@ discard block |
||
| 2566 | 2567 | * @param Member $member |
| 2567 | 2568 | * @param array $context Additional context-specific data which might |
| 2568 | 2569 | * affect whether (or where) this object could be created. |
| 2569 | - * @return boolean |
|
| 2570 | + * @return boolean|string |
|
| 2570 | 2571 | */ |
| 2571 | 2572 | public function canCreate($member = null, $context = array()) |
| 2572 | 2573 | { |
@@ -2683,7 +2684,7 @@ discard block |
||
| 2683 | 2684 | * Traverses to a field referenced by relationships between data objects, returning the value |
| 2684 | 2685 | * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName) |
| 2685 | 2686 | * |
| 2686 | - * @param $fieldName string |
|
| 2687 | + * @param string $fieldName string |
|
| 2687 | 2688 | * @return string | null - will return null on a missing value |
| 2688 | 2689 | */ |
| 2689 | 2690 | public function relField($fieldName) |
@@ -2762,7 +2763,7 @@ discard block |
||
| 2762 | 2763 | * @param string $callerClass The class of objects to be returned |
| 2763 | 2764 | * @param string|array $filter A filter to be inserted into the WHERE clause. |
| 2764 | 2765 | * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples. |
| 2765 | - * @param string|array $sort A sort expression to be inserted into the ORDER |
|
| 2766 | + * @param string $sort A sort expression to be inserted into the ORDER |
|
| 2766 | 2767 | * BY clause. If omitted, self::$default_sort will be used. |
| 2767 | 2768 | * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead. |
| 2768 | 2769 | * @param string|array $limit A limit expression to be inserted into the LIMIT clause. |
@@ -20,6 +20,11 @@ |
||
| 20 | 20 | |
| 21 | 21 | protected $id; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param \SilverStripe\Forms\GridField\GridField $gridField |
|
| 25 | + * @param string $id |
|
| 26 | + * @param string $link |
|
| 27 | + */ |
|
| 23 | 28 | public function __construct($gridField, $id, $link) |
| 24 | 29 | { |
| 25 | 30 | $this->gridField = $gridField; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * Only increases up to the maximum defined in {@link setMemoryLimitMax()}, |
| 52 | 52 | * and defaults to the 'memory_limit' setting in the PHP configuration. |
| 53 | 53 | * |
| 54 | - * @param string|float|int $memoryLimit A memory limit string, such as "64M". If omitted, unlimited memory will be set. |
|
| 54 | + * @param integer $memoryLimit A memory limit string, such as "64M". If omitted, unlimited memory will be set. |
|
| 55 | 55 | * @return bool true indicates a successful change, false a denied change. |
| 56 | 56 | */ |
| 57 | 57 | public static function increaseMemoryLimitTo($memoryLimit = -1) |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * @return int Memory limit in bytes |
|
| 99 | + * @return double Memory limit in bytes |
|
| 100 | 100 | */ |
| 101 | 101 | public static function getMemoryLimitMax() |
| 102 | 102 | { |
@@ -400,7 +400,7 @@ |
||
| 400 | 400 | * string of HTML. |
| 401 | 401 | * |
| 402 | 402 | * @param string $html HTML to scan for elements |
| 403 | - * @return SimpleXMLElement |
|
| 403 | + * @return \SimpleXMLElement[] |
|
| 404 | 404 | */ |
| 405 | 405 | public function findOptionElements($html) |
| 406 | 406 | { |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | /** |
| 161 | 161 | * Find the webserver software running on the PHP host. |
| 162 | - * @return string|boolean Server software or boolean FALSE |
|
| 162 | + * @return false|string Server software or boolean FALSE |
|
| 163 | 163 | */ |
| 164 | 164 | public function findWebserver() |
| 165 | 165 | { |
@@ -469,6 +469,10 @@ discard block |
||
| 469 | 469 | return ini_get($settingName); |
| 470 | 470 | } |
| 471 | 471 | |
| 472 | + /** |
|
| 473 | + * @param string $settingName |
|
| 474 | + * @param string[] $testDetails |
|
| 475 | + */ |
|
| 472 | 476 | public function suggestPHPSetting($settingName, $settingValues, $testDetails) |
| 473 | 477 | { |
| 474 | 478 | $this->testing($testDetails); |
@@ -482,6 +486,11 @@ discard block |
||
| 482 | 486 | } |
| 483 | 487 | } |
| 484 | 488 | |
| 489 | + /** |
|
| 490 | + * @param string $settingName |
|
| 491 | + * @param false[] $settingValues |
|
| 492 | + * @param string[] $testDetails |
|
| 493 | + */ |
|
| 485 | 494 | public function requirePHPSetting($settingName, $settingValues, $testDetails) |
| 486 | 495 | { |
| 487 | 496 | $this->testing($testDetails); |
@@ -492,6 +501,10 @@ discard block |
||
| 492 | 501 | } |
| 493 | 502 | } |
| 494 | 503 | |
| 504 | + /** |
|
| 505 | + * @param string $class |
|
| 506 | + * @param string[] $testDetails |
|
| 507 | + */ |
|
| 495 | 508 | public function suggestClass($class, $testDetails) |
| 496 | 509 | { |
| 497 | 510 | $this->testing($testDetails); |
@@ -501,6 +514,10 @@ discard block |
||
| 501 | 514 | } |
| 502 | 515 | } |
| 503 | 516 | |
| 517 | + /** |
|
| 518 | + * @param string $class |
|
| 519 | + * @param string[] $testDetails |
|
| 520 | + */ |
|
| 504 | 521 | public function suggestFunction($class, $testDetails) |
| 505 | 522 | { |
| 506 | 523 | $this->testing($testDetails); |
@@ -520,6 +537,10 @@ discard block |
||
| 520 | 537 | } |
| 521 | 538 | } |
| 522 | 539 | |
| 540 | + /** |
|
| 541 | + * @param integer $min |
|
| 542 | + * @param integer $recommended |
|
| 543 | + */ |
|
| 523 | 544 | public function requireMemory($min, $recommended, $testDetails) |
| 524 | 545 | { |
| 525 | 546 | $_SESSION['forcemem'] = false; |
@@ -635,6 +656,10 @@ discard block |
||
| 635 | 656 | } |
| 636 | 657 | } |
| 637 | 658 | |
| 659 | + /** |
|
| 660 | + * @param string $funcName |
|
| 661 | + * @param string[] $testDetails |
|
| 662 | + */ |
|
| 638 | 663 | public function requireFunction($funcName, $testDetails) |
| 639 | 664 | { |
| 640 | 665 | $this->testing($testDetails); |
@@ -646,6 +671,10 @@ discard block |
||
| 646 | 671 | return true; |
| 647 | 672 | } |
| 648 | 673 | |
| 674 | + /** |
|
| 675 | + * @param string $className |
|
| 676 | + * @param string[] $testDetails |
|
| 677 | + */ |
|
| 649 | 678 | public function requireClass($className, $testDetails) |
| 650 | 679 | { |
| 651 | 680 | $this->testing($testDetails); |
@@ -692,6 +721,10 @@ discard block |
||
| 692 | 721 | return true; |
| 693 | 722 | } |
| 694 | 723 | |
| 724 | + /** |
|
| 725 | + * @param string $recommendedVersion |
|
| 726 | + * @param string $requiredVersion |
|
| 727 | + */ |
|
| 695 | 728 | public function requirePHPVersion($recommendedVersion, $requiredVersion, $testDetails) |
| 696 | 729 | { |
| 697 | 730 | $this->testing($testDetails); |
@@ -735,7 +768,7 @@ discard block |
||
| 735 | 768 | * to ensure the module directory is intact. |
| 736 | 769 | * |
| 737 | 770 | * @param string $dirname |
| 738 | - * @param array $testDetails |
|
| 771 | + * @param string[] $testDetails |
|
| 739 | 772 | */ |
| 740 | 773 | public function requireModule($dirname, $testDetails) |
| 741 | 774 | { |
@@ -751,6 +784,10 @@ discard block |
||
| 751 | 784 | } |
| 752 | 785 | } |
| 753 | 786 | |
| 787 | + /** |
|
| 788 | + * @param string $filename |
|
| 789 | + * @param string[] $testDetails |
|
| 790 | + */ |
|
| 754 | 791 | public function requireFile($filename, $testDetails) |
| 755 | 792 | { |
| 756 | 793 | $this->testing($testDetails); |
@@ -761,6 +798,9 @@ discard block |
||
| 761 | 798 | } |
| 762 | 799 | } |
| 763 | 800 | |
| 801 | + /** |
|
| 802 | + * @param string $filename |
|
| 803 | + */ |
|
| 764 | 804 | public function requireWriteable($filename, $testDetails, $absolute = false) |
| 765 | 805 | { |
| 766 | 806 | $this->testing($testDetails); |
@@ -869,6 +909,10 @@ discard block |
||
| 869 | 909 | } |
| 870 | 910 | } |
| 871 | 911 | |
| 912 | + /** |
|
| 913 | + * @param string $moduleName |
|
| 914 | + * @param string[] $testDetails |
|
| 915 | + */ |
|
| 872 | 916 | public function requireApacheRewriteModule($moduleName, $testDetails) |
| 873 | 917 | { |
| 874 | 918 | $this->testing($testDetails); |
@@ -889,6 +933,10 @@ discard block |
||
| 889 | 933 | return ($this->testApacheRewriteExists() || $this->testIISRewriteModuleExists()); |
| 890 | 934 | } |
| 891 | 935 | |
| 936 | + /** |
|
| 937 | + * @param string $moduleName |
|
| 938 | + * @param string[] $testDetails |
|
| 939 | + */ |
|
| 892 | 940 | public function requireIISRewriteModule($moduleName, $testDetails) |
| 893 | 941 | { |
| 894 | 942 | $this->testing($testDetails); |
@@ -916,6 +964,9 @@ discard block |
||
| 916 | 964 | return DatabaseAdapterRegistry::getDatabaseConfigurationHelper($databaseClass); |
| 917 | 965 | } |
| 918 | 966 | |
| 967 | + /** |
|
| 968 | + * @param string[] $testDetails |
|
| 969 | + */ |
|
| 919 | 970 | public function requireDatabaseFunctions($databaseConfig, $testDetails) |
| 920 | 971 | { |
| 921 | 972 | $this->testing($testDetails); |
@@ -933,6 +984,9 @@ discard block |
||
| 933 | 984 | } |
| 934 | 985 | } |
| 935 | 986 | |
| 987 | + /** |
|
| 988 | + * @param string[] $testDetails |
|
| 989 | + */ |
|
| 936 | 990 | public function requireDatabaseConnection($databaseConfig, $testDetails) |
| 937 | 991 | { |
| 938 | 992 | $this->testing($testDetails); |
@@ -947,6 +1001,9 @@ discard block |
||
| 947 | 1001 | } |
| 948 | 1002 | } |
| 949 | 1003 | |
| 1004 | + /** |
|
| 1005 | + * @param string[] $testDetails |
|
| 1006 | + */ |
|
| 950 | 1007 | public function requireDatabaseVersion($databaseConfig, $testDetails) |
| 951 | 1008 | { |
| 952 | 1009 | $this->testing($testDetails); |
@@ -979,6 +1036,9 @@ discard block |
||
| 979 | 1036 | } |
| 980 | 1037 | } |
| 981 | 1038 | |
| 1039 | + /** |
|
| 1040 | + * @param string[] $testDetails |
|
| 1041 | + */ |
|
| 982 | 1042 | public function requireDatabaseOrCreatePermissions($databaseConfig, $testDetails) |
| 983 | 1043 | { |
| 984 | 1044 | $this->testing($testDetails); |
@@ -1004,6 +1064,9 @@ discard block |
||
| 1004 | 1064 | } |
| 1005 | 1065 | } |
| 1006 | 1066 | |
| 1067 | + /** |
|
| 1068 | + * @param string[] $testDetails |
|
| 1069 | + */ |
|
| 1007 | 1070 | public function requireDatabaseAlterPermissions($databaseConfig, $testDetails) |
| 1008 | 1071 | { |
| 1009 | 1072 | $this->testing($testDetails); |
@@ -1019,6 +1082,10 @@ discard block |
||
| 1019 | 1082 | } |
| 1020 | 1083 | } |
| 1021 | 1084 | |
| 1085 | + /** |
|
| 1086 | + * @param string[] $varNames |
|
| 1087 | + * @param string[] $testDetails |
|
| 1088 | + */ |
|
| 1022 | 1089 | public function requireServerVariables($varNames, $testDetails) |
| 1023 | 1090 | { |
| 1024 | 1091 | $this->testing($testDetails); |
@@ -1040,6 +1107,9 @@ discard block |
||
| 1040 | 1107 | } |
| 1041 | 1108 | |
| 1042 | 1109 | |
| 1110 | + /** |
|
| 1111 | + * @param string[] $testDetails |
|
| 1112 | + */ |
|
| 1043 | 1113 | public function requirePostSupport($testDetails) |
| 1044 | 1114 | { |
| 1045 | 1115 | $this->testing($testDetails); |