@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | * The name of the service to update the definition for |
451 | 451 | * @param string $property |
452 | 452 | * The name of the property to update. |
453 | - * @param mixed $value |
|
453 | + * @param string $value |
|
454 | 454 | * The value to set |
455 | 455 | * @param boolean $append |
456 | 456 | * Whether to append (the default) when the property is an array |
@@ -718,6 +718,7 @@ discard block |
||
718 | 718 | * |
719 | 719 | * Will recursively call hasService for each depth of dotting |
720 | 720 | * |
721 | + * @param string $name |
|
721 | 722 | * @return string |
722 | 723 | * The name of the service (as it might be different from the one passed in) |
723 | 724 | */ |
@@ -894,8 +895,6 @@ discard block |
||
894 | 895 | * |
895 | 896 | * @param string $name |
896 | 897 | * Name of the class to create an object of |
897 | - * @param array $args |
|
898 | - * Arguments to pass to the constructor |
|
899 | 898 | * @return mixed |
900 | 899 | */ |
901 | 900 | public function createWithArgs($name, $constructorArgs) { |
@@ -242,6 +242,10 @@ discard block |
||
242 | 242 | * match. The caller must trim matching lines from the beginning and end |
243 | 243 | * of the portions it is going to specify. |
244 | 244 | */ |
245 | + |
|
246 | + /** |
|
247 | + * @param double $nchunks |
|
248 | + */ |
|
245 | 249 | public function _diag ($xoff, $xlim, $yoff, $ylim, $nchunks) { |
246 | 250 | $flip = false; |
247 | 251 | |
@@ -352,6 +356,11 @@ discard block |
||
352 | 356 | * Note that XLIM, YLIM are exclusive bounds. |
353 | 357 | * All line numbers are origin-0 and discarded lines are not counted. |
354 | 358 | */ |
359 | + |
|
360 | + /** |
|
361 | + * @param integer $xoff |
|
362 | + * @param integer $yoff |
|
363 | + */ |
|
355 | 364 | public function _compareseq ($xoff, $xlim, $yoff, $ylim) { |
356 | 365 | // Slide down the bottom initial diagonal. |
357 | 366 | while ($xoff < $xlim && $yoff < $ylim |
@@ -549,7 +558,7 @@ discard block |
||
549 | 558 | * |
550 | 559 | * $diff = new Diff($lines1, $lines2); |
551 | 560 | * $rev = $diff->reverse(); |
552 | - * @return SS_Object A Diff object representing the inverse of the |
|
561 | + * @return Diff A Diff object representing the inverse of the |
|
553 | 562 | * original diff. |
554 | 563 | */ |
555 | 564 | public function reverse () { |
@@ -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 |
@@ -956,6 +951,7 @@ discard block |
||
956 | 951 | |
957 | 952 | /** |
958 | 953 | * @see SS_Object::get_static() |
954 | + * @param string $name |
|
959 | 955 | */ |
960 | 956 | public function stat($name, $uncached = false) { |
961 | 957 | return Config::inst()->get(($this->class ? $this->class : get_class($this)), $name, Config::FIRST_SET); |
@@ -963,6 +959,8 @@ discard block |
||
963 | 959 | |
964 | 960 | /** |
965 | 961 | * @see SS_Object::set_static() |
962 | + * @param string $name |
|
963 | + * @param string $value |
|
966 | 964 | */ |
967 | 965 | public function set_stat($name, $value) { |
968 | 966 | Config::inst()->update(($this->class ? $this->class : get_class($this)), $name, $value); |
@@ -970,6 +968,7 @@ discard block |
||
970 | 968 | |
971 | 969 | /** |
972 | 970 | * @see SS_Object::uninherited_static() |
971 | + * @param string $name |
|
973 | 972 | */ |
974 | 973 | public function uninherited($name) { |
975 | 974 | return Config::inst()->get(($this->class ? $this->class : get_class($this)), $name, Config::UNINHERITED); |
@@ -1020,7 +1019,7 @@ discard block |
||
1020 | 1019 | * all results into an array |
1021 | 1020 | * |
1022 | 1021 | * @param string $method the method name to call |
1023 | - * @param mixed $argument a single argument to pass |
|
1022 | + * @param string $argument a single argument to pass |
|
1024 | 1023 | * @return mixed |
1025 | 1024 | * @todo integrate inheritance rules |
1026 | 1025 | */ |
@@ -1043,7 +1042,7 @@ discard block |
||
1043 | 1042 | * The extension methods are defined during {@link __construct()} in {@link defineMethods()}. |
1044 | 1043 | * |
1045 | 1044 | * @param string $method the name of the method to call on each extension |
1046 | - * @param mixed $a1,... up to 7 arguments to be passed to the method |
|
1045 | + * @param DataObject $a4 |
|
1047 | 1046 | * @return array |
1048 | 1047 | */ |
1049 | 1048 | public function extend($method, &$a1=null, &$a2=null, &$a3=null, &$a4=null, &$a5=null, &$a6=null, &$a7=null) { |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * |
116 | 116 | * @param unknown_type $returnVal |
117 | 117 | * @param unknown_type $ignoreAjax |
118 | - * @return unknown |
|
118 | + * @return string|null |
|
119 | 119 | */ |
120 | 120 | public static function backtrace($returnVal = false, $ignoreAjax = false, $ignoredFunctions = null) { |
121 | 121 | $plainText = Director::is_cli() || (Director::is_ajax() && !$ignoreAjax); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * shown |
133 | 133 | * |
134 | 134 | * @param SS_Object $item |
135 | - * @param boolean $showArg |
|
135 | + * @param boolean $showArgs |
|
136 | 136 | * @param Int $argCharLimit |
137 | 137 | * @return String |
138 | 138 | */ |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * |
224 | 224 | * @param array $tmpFile |
225 | 225 | * @param File $file |
226 | - * @return Boolean |
|
226 | + * @return boolean|string |
|
227 | 227 | */ |
228 | 228 | public function loadIntoFile($tmpFile, $file, $folderPath = false) { |
229 | 229 | $this->file = $file; |
@@ -231,7 +231,8 @@ discard block |
||
231 | 231 | } |
232 | 232 | |
233 | 233 | /** |
234 | - * @return Boolean |
|
234 | + * @param boolean $bool |
|
235 | + * @return boolean|null |
|
235 | 236 | */ |
236 | 237 | public function setReplaceFile($bool) { |
237 | 238 | $this->replaceFile = $bool; |
@@ -295,7 +296,7 @@ discard block |
||
295 | 296 | /** |
296 | 297 | * Determines wether previous operations caused an error. |
297 | 298 | * |
298 | - * @return boolean |
|
299 | + * @return integer |
|
299 | 300 | */ |
300 | 301 | public function isError() { |
301 | 302 | return (count($this->errors)); |
@@ -496,7 +496,7 @@ discard block |
||
496 | 496 | * Combine the given forms into a formset with a tabbed interface |
497 | 497 | * |
498 | 498 | * @param array $forms List of LoginForm instances |
499 | - * @return string |
|
499 | + * @return HTMLText |
|
500 | 500 | */ |
501 | 501 | protected function generateLoginFormSet($forms) { |
502 | 502 | $viewData = new ArrayData(array( |
@@ -676,7 +676,6 @@ discard block |
||
676 | 676 | * - t: plaintext token |
677 | 677 | * |
678 | 678 | * @param Member $member Member object associated with this link. |
679 | - * @param string $autoLoginHash The auto login token. |
|
680 | 679 | */ |
681 | 680 | public static function getPasswordResetLink($member, $autologinToken) { |
682 | 681 | $autologinToken = urldecode($autologinToken); |
@@ -767,7 +766,7 @@ discard block |
||
767 | 766 | /** |
768 | 767 | * Factory method for the lost password form |
769 | 768 | * |
770 | - * @return Form Returns the lost password form |
|
769 | + * @return Security Returns the lost password form |
|
771 | 770 | */ |
772 | 771 | public function ChangePasswordForm() { |
773 | 772 | return SS_Object::create('ChangePasswordForm', $this, 'ChangePasswordForm'); |
@@ -951,7 +950,7 @@ discard block |
||
951 | 950 | * @deprecated 4.0 Use the "Security.password_encryption_algorithm" config setting instead |
952 | 951 | * @param string $algorithm One of the available password encryption |
953 | 952 | * algorithms determined by {@link Security::get_encryption_algorithms()} |
954 | - * @return bool Returns TRUE if the passed algorithm was valid, otherwise FALSE. |
|
953 | + * @return boolean|null Returns TRUE if the passed algorithm was valid, otherwise FALSE. |
|
955 | 954 | */ |
956 | 955 | public static function set_password_encryption_algorithm($algorithm) { |
957 | 956 | Deprecation::notice('4.0', 'Use the "Security.password_encryption_algorithm" config setting instead'); |
@@ -1106,7 +1105,7 @@ discard block |
||
1106 | 1105 | /** |
1107 | 1106 | * Set to true to ignore access to disallowed actions, rather than returning permission failure |
1108 | 1107 | * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions() |
1109 | - * @param $flag True or false |
|
1108 | + * @param boolean $flag True or false |
|
1110 | 1109 | */ |
1111 | 1110 | public static function set_ignore_disallowed_actions($flag) { |
1112 | 1111 | self::$ignore_disallowed_actions = $flag; |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * Set the default autoloader implementation |
139 | 139 | * |
140 | 140 | * @param string|array $callback PHP callback |
141 | - * @return void |
|
141 | + * @return Zend_Loader_Autoloader |
|
142 | 142 | */ |
143 | 143 | public function setDefaultAutoloader($callback) |
144 | 144 | { |
@@ -371,8 +371,8 @@ discard block |
||
371 | 371 | /** |
372 | 372 | * Add an autoloader to the beginning of the stack |
373 | 373 | * |
374 | - * @param SS_Object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
375 | - * @param string|array $namespace Specific namespace(s) under which to register callback |
|
374 | + * @param Zend_Loader_Autoloader_Resource $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
375 | + * @param string $namespace Specific namespace(s) under which to register callback |
|
376 | 376 | * @return Zend_Loader_Autoloader |
377 | 377 | */ |
378 | 378 | public function unshiftAutoloader($callback, $namespace = '') |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | /** |
395 | 395 | * Append an autoloader to the autoloader stack |
396 | 396 | * |
397 | - * @param SS_Object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
397 | + * @param string[] $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
398 | 398 | * @param string|array $namespace Specific namespace(s) under which to register callback |
399 | 399 | * @return Zend_Loader_Autoloader |
400 | 400 | */ |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | /** |
418 | 418 | * Remove an autoloader from the autoloader stack |
419 | 419 | * |
420 | - * @param SS_Object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
420 | + * @param string[] $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
421 | 421 | * @param null|string|array $namespace Specific namespace(s) from which to remove autoloader |
422 | 422 | * @return Zend_Loader_Autoloader |
423 | 423 | */ |
@@ -467,7 +467,7 @@ discard block |
||
467 | 467 | * Internal autoloader implementation |
468 | 468 | * |
469 | 469 | * @param string $class |
470 | - * @return bool |
|
470 | + * @return string|false |
|
471 | 471 | */ |
472 | 472 | protected function _autoload($class) |
473 | 473 | { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @param string $method |
111 | 111 | * @param array $args |
112 | - * @return mixed |
|
112 | + * @return SS_Object |
|
113 | 113 | * @throws Zend_Loader_Exception if method not beginning with 'get' or not matching a valid resource type is called |
114 | 114 | */ |
115 | 115 | public function __call($method, $args) |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * Helper method to calculate the correct class path |
137 | 137 | * |
138 | 138 | * @param string $class |
139 | - * @return False if not matched other wise the correct path |
|
139 | + * @return false|string if not matched other wise the correct path |
|
140 | 140 | */ |
141 | 141 | public function getClassPath($class) |
142 | 142 | { |
@@ -365,7 +365,6 @@ discard block |
||
365 | 365 | /** |
366 | 366 | * Returns the modulus of the numerical position of the item in the data set. |
367 | 367 | * The count starts from $startIndex, which defaults to 1. |
368 | - * @param int $Mod The number to perform Mod operation to. |
|
369 | 368 | * @param int $startIndex Number to start count from. |
370 | 369 | * @return int |
371 | 370 | */ |
@@ -415,6 +414,10 @@ discard block |
||
415 | 414 | */ |
416 | 415 | protected $underlay; |
417 | 416 | |
417 | + /** |
|
418 | + * @param SS_Object $item |
|
419 | + * @param SS_Object $inheritedScope |
|
420 | + */ |
|
418 | 421 | public function __construct($item, $overlay = null, $underlay = null, $inheritedScope = null) { |
419 | 422 | parent::__construct($item, $inheritedScope); |
420 | 423 | |
@@ -439,6 +442,10 @@ discard block |
||
439 | 442 | $this->underlay = $underlay ? $underlay : array(); |
440 | 443 | } |
441 | 444 | |
445 | + /** |
|
446 | + * @param string $interfaceToQuery |
|
447 | + * @param string $variableMethod |
|
448 | + */ |
|
442 | 449 | protected function createCallableArray(&$extraArray, $interfaceToQuery, $variableMethod, $createObject = false) { |
443 | 450 | $implementers = ClassInfo::implementorsOf($interfaceToQuery); |
444 | 451 | if($implementers) foreach($implementers as $implementer) { |
@@ -851,7 +858,7 @@ discard block |
||
851 | 858 | * |
852 | 859 | * @param $className string - valid class name |
853 | 860 | * @param $suffix string |
854 | - * @param $baseClass string |
|
861 | + * @param string $baseClass string |
|
855 | 862 | * |
856 | 863 | * @return array |
857 | 864 | */ |
@@ -1254,9 +1261,9 @@ discard block |
||
1254 | 1261 | * Used by the <% include %> template tag to process templates. |
1255 | 1262 | * |
1256 | 1263 | * @param string $template Template name |
1257 | - * @param mixed $data Data context |
|
1264 | + * @param SS_Object $data Data context |
|
1258 | 1265 | * @param array $arguments Additional arguments |
1259 | - * @return string Evaluated result |
|
1266 | + * @return HTMLText Evaluated result |
|
1260 | 1267 | */ |
1261 | 1268 | public static function execute_template($template, $data, $arguments = null, $scope = null) { |
1262 | 1269 | $v = new SSViewer($template); |
@@ -1282,6 +1289,9 @@ discard block |
||
1282 | 1289 | return $v->process($data, $arguments); |
1283 | 1290 | } |
1284 | 1291 | |
1292 | + /** |
|
1293 | + * @param string $content |
|
1294 | + */ |
|
1285 | 1295 | public function parseTemplateContent($content, $template="") { |
1286 | 1296 | return $this->getParser()->compileString( |
1287 | 1297 | $content, |
@@ -1310,7 +1320,7 @@ discard block |
||
1310 | 1320 | * Return an appropriate base tag for the given template. |
1311 | 1321 | * It will be closed on an XHTML document, and unclosed on an HTML document. |
1312 | 1322 | * |
1313 | - * @param $contentGeneratedSoFar The content of the template generated so far; it should contain |
|
1323 | + * @param string $contentGeneratedSoFar The content of the template generated so far; it should contain |
|
1314 | 1324 | * the DOCTYPE declaration. |
1315 | 1325 | */ |
1316 | 1326 | public static function get_base_tag($contentGeneratedSoFar) { |
@@ -1351,6 +1361,9 @@ discard block |
||
1351 | 1361 | */ |
1352 | 1362 | protected $cacheTemplate; |
1353 | 1363 | |
1364 | + /** |
|
1365 | + * @param string $content |
|
1366 | + */ |
|
1354 | 1367 | public function __construct($content, TemplateParser $parser = null) { |
1355 | 1368 | if ($parser) { |
1356 | 1369 | $this->setParser($parser); |