@@ -162,6 +162,9 @@ discard block |
||
162 | 162 | |
163 | 163 | // -------------------------------------------------------------------------------------------------------------- |
164 | 164 | |
165 | + /** |
|
166 | + * @param DOMElement $node |
|
167 | + */ |
|
165 | 168 | protected function removeNode($node) { |
166 | 169 | $node->parentNode->removeChild($node); |
167 | 170 | } |
@@ -177,6 +180,9 @@ discard block |
||
177 | 180 | } |
178 | 181 | } |
179 | 182 | |
183 | + /** |
|
184 | + * @param DOMElement $after |
|
185 | + */ |
|
180 | 186 | protected function insertListAfter($new, $after) { |
181 | 187 | $doc = $after->ownerDocument; $parent = $after->parentNode; $next = $after->nextSibling; |
182 | 188 |
@@ -85,6 +85,10 @@ discard block |
||
85 | 85 | * but is necessary for retain compatibility with password hashed |
86 | 86 | * with flawed algorithms - see {@link PasswordEncryptor_LegacyPHPHash} and |
87 | 87 | * {@link PasswordEncryptor_Blowfish} |
88 | + * @param string $hash |
|
89 | + * @param string $password |
|
90 | + * @param string $salt |
|
91 | + * @param Member $member |
|
88 | 92 | */ |
89 | 93 | public function check($hash, $password, $salt = null, $member = null) { |
90 | 94 | return $hash === $this->encrypt($password, $salt, $member); |
@@ -241,6 +245,7 @@ discard block |
||
241 | 245 | |
242 | 246 | /** |
243 | 247 | * self::$cost param is forced to be two digits with leading zeroes for ints 4-9 |
248 | + * @param string $password |
|
244 | 249 | */ |
245 | 250 | public function salt($password, $member = null) { |
246 | 251 | $generator = new RandomGenerator(); |
@@ -125,8 +125,6 @@ discard block |
||
125 | 125 | * $list = DataList::create('SiteTree'); |
126 | 126 | * $list = SiteTree::get(); |
127 | 127 | * |
128 | - * @param string $class the class name |
|
129 | - * @param mixed $arguments,... arguments to pass to the constructor |
|
130 | 128 | * @return static |
131 | 129 | */ |
132 | 130 | public static function create() { |
@@ -149,7 +147,6 @@ discard block |
||
149 | 147 | * way to access instance methods which don't rely on instance |
150 | 148 | * data (e.g. the custom SilverStripe static handling). |
151 | 149 | * |
152 | - * @param string $className Optional classname (if called on Object directly) |
|
153 | 150 | * @return static The singleton instance |
154 | 151 | */ |
155 | 152 | public static function singleton() { |
@@ -334,8 +331,6 @@ discard block |
||
334 | 331 | * Similar to {@link Object::create()}, except that classes are only overloaded if you set the $strong parameter to |
335 | 332 | * TRUE when using {@link Object::useCustomClass()} |
336 | 333 | * |
337 | - * @param string $class the class name |
|
338 | - * @param mixed $arguments,... arguments to pass to the constructor |
|
339 | 334 | * @return static |
340 | 335 | */ |
341 | 336 | public static function strong_create() { |
@@ -387,8 +382,8 @@ discard block |
||
387 | 382 | * without any inheritance, merging or parent lookup if it doesn't exist on the given class. |
388 | 383 | * |
389 | 384 | * @static |
390 | - * @param $class - The class to get the static from |
|
391 | - * @param $name - The property to get from the class |
|
385 | + * @param string $class - The class to get the static from |
|
386 | + * @param string $name - The property to get from the class |
|
392 | 387 | * @param null $default - The value to return if property doesn't exist on class |
393 | 388 | * @return any - The value of the static property $name on class $class, or $default if that property is not |
394 | 389 | * defined |
@@ -958,6 +953,7 @@ discard block |
||
958 | 953 | |
959 | 954 | /** |
960 | 955 | * @see SS_Object::get_static() |
956 | + * @param string $name |
|
961 | 957 | */ |
962 | 958 | public function stat($name, $uncached = false) { |
963 | 959 | return Config::inst()->get(($this->class ? $this->class : get_class($this)), $name, Config::FIRST_SET); |
@@ -965,6 +961,8 @@ discard block |
||
965 | 961 | |
966 | 962 | /** |
967 | 963 | * @see SS_Object::set_static() |
964 | + * @param string $name |
|
965 | + * @param string $value |
|
968 | 966 | */ |
969 | 967 | public function set_stat($name, $value) { |
970 | 968 | Config::inst()->update(($this->class ? $this->class : get_class($this)), $name, $value); |
@@ -972,6 +970,7 @@ discard block |
||
972 | 970 | |
973 | 971 | /** |
974 | 972 | * @see SS_Object::uninherited_static() |
973 | + * @param string $name |
|
975 | 974 | */ |
976 | 975 | public function uninherited($name) { |
977 | 976 | return Config::inst()->get(($this->class ? $this->class : get_class($this)), $name, Config::UNINHERITED); |
@@ -1022,7 +1021,7 @@ discard block |
||
1022 | 1021 | * all results into an array |
1023 | 1022 | * |
1024 | 1023 | * @param string $method the method name to call |
1025 | - * @param mixed $argument a single argument to pass |
|
1024 | + * @param string $argument a single argument to pass |
|
1026 | 1025 | * @return mixed |
1027 | 1026 | * @todo integrate inheritance rules |
1028 | 1027 | */ |
@@ -1048,7 +1047,7 @@ discard block |
||
1048 | 1047 | * @param mixed $a1 |
1049 | 1048 | * @param mixed $a2 |
1050 | 1049 | * @param mixed $a3 |
1051 | - * @param mixed $a4 |
|
1050 | + * @param DataObject $a4 |
|
1052 | 1051 | * @param mixed $a5 |
1053 | 1052 | * @param mixed $a6 |
1054 | 1053 | * @param mixed $a7 |