@@ -147,6 +147,7 @@ discard block |
||
147 | 147 | * {@inheritdoc} |
148 | 148 | * |
149 | 149 | * Also set the URLParams |
150 | + * @param HTTPRequest $request |
|
150 | 151 | */ |
151 | 152 | public function setRequest($request) |
152 | 153 | { |
@@ -523,7 +524,7 @@ discard block |
||
523 | 524 | * |
524 | 525 | * @param array $params |
525 | 526 | * |
526 | - * @return string |
|
527 | + * @return DBHTMLText |
|
527 | 528 | */ |
528 | 529 | public function render($params = null) |
529 | 530 | { |
@@ -702,7 +703,7 @@ discard block |
||
702 | 703 | * Tests whether a redirection has been requested. If redirect() has been called, it will return |
703 | 704 | * the URL redirected to. Otherwise, it will return null. |
704 | 705 | * |
705 | - * @return null|string |
|
706 | + * @return boolean |
|
706 | 707 | */ |
707 | 708 | public function redirectedTo() |
708 | 709 | { |
@@ -736,7 +737,6 @@ discard block |
||
736 | 737 | * |
737 | 738 | * Caution: All parameters are expected to be URI-encoded already. |
738 | 739 | * |
739 | - * @param string|array $arg,.. One or more link segments, or list of link segments as an array |
|
740 | 740 | * @return string |
741 | 741 | */ |
742 | 742 | public static function join_links($arg = null) |
@@ -151,7 +151,7 @@ |
||
151 | 151 | * @see http://uk3.php.net/manual/en/function.setcookie.php |
152 | 152 | * |
153 | 153 | * @param string $name The name of the cookie |
154 | - * @param string|array $value The value for the cookie to hold |
|
154 | + * @param false|string $value The value for the cookie to hold |
|
155 | 155 | * @param int $expiry The number of days until expiry |
156 | 156 | * @param string $path The path to save the cookie on (falls back to site base) |
157 | 157 | * @param string $domain The domain to make the cookie available on |
@@ -296,7 +296,7 @@ |
||
296 | 296 | * |
297 | 297 | * Must not raise HTTPResponse_Exceptions - instead it should return |
298 | 298 | * |
299 | - * @param $request |
|
299 | + * @param HTTPRequest $request |
|
300 | 300 | * @param $action |
301 | 301 | * @return HTTPResponse |
302 | 302 | */ |
@@ -248,6 +248,7 @@ |
||
248 | 248 | * via the standard template inclusion process. |
249 | 249 | * |
250 | 250 | * @param string |
251 | + * @param string|null $template |
|
251 | 252 | */ |
252 | 253 | public function setTemplate($template) |
253 | 254 | { |
@@ -297,6 +297,9 @@ discard block |
||
297 | 297 | |
298 | 298 | private static $method_from_cache = array(); |
299 | 299 | |
300 | + /** |
|
301 | + * @param string $method |
|
302 | + */ |
|
300 | 303 | public static function has_method_from($class, $method, $compclass) |
301 | 304 | { |
302 | 305 | $lClass = strtolower($class); |
@@ -322,6 +325,8 @@ discard block |
||
322 | 325 | |
323 | 326 | /** |
324 | 327 | * @deprecated 4.0..5.0 |
328 | + * @param string $candidateClass |
|
329 | + * @param string $fieldName |
|
325 | 330 | */ |
326 | 331 | public static function table_for_object_field($candidateClass, $fieldName) |
327 | 332 | { |
@@ -152,7 +152,7 @@ |
||
152 | 152 | /** |
153 | 153 | * Get meta-data details on a named method |
154 | 154 | * |
155 | - * @param array $method |
|
155 | + * @param string $method |
|
156 | 156 | * @return array List of custom method details, if defined for this method |
157 | 157 | */ |
158 | 158 | protected function getExtraMethodConfig($method) |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | /** |
107 | 107 | * Get value of display_errors ini value |
108 | 108 | * |
109 | - * @return mixed |
|
109 | + * @return string |
|
110 | 110 | */ |
111 | 111 | protected function getDisplayErrors() |
112 | 112 | { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * Add this callback to the chain of callbacks to call along with the state |
118 | 118 | * that $error must be in this point in the chain for the callback to be called |
119 | 119 | * |
120 | - * @param $callback - The callback to call |
|
120 | + * @param callable $callback - The callback to call |
|
121 | 121 | * @param $onErrorState - false if only call if no errors yet, true if only call if already errors, null for either |
122 | 122 | * @return $this |
123 | 123 | */ |
@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected $token = null; |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $token |
|
43 | + */ |
|
41 | 44 | protected function pathForToken($token) |
42 | 45 | { |
43 | 46 | return TEMP_FOLDER.'/token_'.preg_replace('/[^a-z0-9]+/', '', $token); |
@@ -247,7 +250,7 @@ discard block |
||
247 | 250 | * Given a list of token names, suppress all tokens that have not been validated, and |
248 | 251 | * return the non-validated token with the highest priority |
249 | 252 | * |
250 | - * @param array $keys List of token keys in ascending priority (low to high) |
|
253 | + * @param string[] $keys List of token keys in ascending priority (low to high) |
|
251 | 254 | * @return ParameterConfirmationToken The token container for the unvalidated $key given with the highest priority |
252 | 255 | */ |
253 | 256 | public static function prepare_tokens($keys) |
@@ -132,7 +132,7 @@ |
||
132 | 132 | * @param mixed $returnVal |
133 | 133 | * @param bool $ignoreAjax |
134 | 134 | * @param array $ignoredFunctions |
135 | - * @return mixed |
|
135 | + * @return string|null |
|
136 | 136 | */ |
137 | 137 | public static function backtrace($returnVal = false, $ignoreAjax = false, $ignoredFunctions = null) |
138 | 138 | { |