@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * Creates the DB connection. |
63 | 63 | * @param string $connectionID the module ID for TDataSourceConfig |
64 | 64 | * @throws TConfigurationException if module ID is invalid or empty |
65 | - * @return TDbConnection the created DB connection |
|
65 | + * @return \Prado\Data\TDbConnection the created DB connection |
|
66 | 66 | */ |
67 | 67 | protected function createDbConnection($connectionID) |
68 | 68 | { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | /** |
141 | 141 | * Get all the variants of a particular catalogue. |
142 | 142 | * @param string $catalogue catalogue name |
143 | - * @return array list of all variants for this catalogue. |
|
143 | + * @return string[] list of all variants for this catalogue. |
|
144 | 144 | */ |
145 | 145 | protected function getCatalogueList($catalogue) |
146 | 146 | { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | /** |
195 | 195 | * Update the catalogue last modified time. |
196 | 196 | * @param mixed $cat_id |
197 | - * @param mixed $variant |
|
197 | + * @param string $variant |
|
198 | 198 | * @return bool true if updated, false otherwise. |
199 | 199 | */ |
200 | 200 | private function updateCatalogueTime($cat_id, $variant) |
@@ -195,6 +195,9 @@ discard block |
||
195 | 195 | return false; |
196 | 196 | } |
197 | 197 | |
198 | + /** |
|
199 | + * @param string $MOFile |
|
200 | + */ |
|
198 | 201 | private function getPOFile($MOFile) |
199 | 202 | { |
200 | 203 | $filebase = substr($MOFile, 0, strlen($MOFile) - strlen($this->dataExt)); |
@@ -423,6 +426,9 @@ discard block |
||
423 | 426 | return $catalogue; |
424 | 427 | } |
425 | 428 | |
429 | + /** |
|
430 | + * @param string $catalogue |
|
431 | + */ |
|
426 | 432 | protected function createMessageTemplate($catalogue) |
427 | 433 | { |
428 | 434 | if ($catalogue === null) { |
@@ -496,8 +496,8 @@ |
||
496 | 496 | /** |
497 | 497 | * |
498 | 498 | * @access private |
499 | - * @param mixed $id |
|
500 | - * @param mixed $data |
|
499 | + * @param string $id |
|
500 | + * @param string $data |
|
501 | 501 | */ |
502 | 502 | protected function _memoryCacheAdd($id, $data) |
503 | 503 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * You should override this method if you want a different way of |
71 | 71 | * setting the Culture and/or Charset for your application. |
72 | 72 | * If you override this method, call parent::init($xml) first. |
73 | - * @param mixed $config application configuration |
|
73 | + * @param \Prado\TXmlElement|null $config application configuration |
|
74 | 74 | */ |
75 | 75 | public function init($config) |
76 | 76 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
99 | - * @return string default culture |
|
99 | + * @return boolean default culture |
|
100 | 100 | */ |
101 | 101 | public function getTranslateDefaultCulture() |
102 | 102 | { |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | * Note that you still need to verify the existance of these files. |
287 | 287 | * @param string $file filename |
288 | 288 | * @param string $culture culture string, null to use current culture |
289 | - * @return array list of possible localized resource files. |
|
289 | + * @return string[] list of possible localized resource files. |
|
290 | 290 | */ |
291 | 291 | public function getLocalizedResource($file, $culture = null) |
292 | 292 | { |
@@ -232,6 +232,9 @@ discard block |
||
232 | 232 | return $v_block; |
233 | 233 | } |
234 | 234 | |
235 | + /** |
|
236 | + * @param double $p_len |
|
237 | + */ |
|
235 | 238 | private function _jumpBlock($p_len = null) |
236 | 239 | { |
237 | 240 | if (is_resource($this->_file)) { |
@@ -333,6 +336,12 @@ discard block |
||
333 | 336 | return true; |
334 | 337 | } |
335 | 338 | |
339 | + /** |
|
340 | + * @param string $p_path |
|
341 | + * @param string $p_mode |
|
342 | + * @param integer $p_file_list |
|
343 | + * @param string $p_remove_path |
|
344 | + */ |
|
336 | 345 | protected function _extractList( |
337 | 346 | $p_path, |
338 | 347 | &$p_list_detail, |
@@ -201,7 +201,7 @@ |
||
201 | 201 | * module of the Prado application to handle the exception. |
202 | 202 | * If the application or the module does not exist, it simply echoes the |
203 | 203 | * exception. |
204 | - * @param Exception $exception exception that is not caught |
|
204 | + * @param TPhpFatalErrorException $exception exception that is not caught |
|
205 | 205 | */ |
206 | 206 | public static function exceptionHandler($exception) |
207 | 207 | { |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * @return array list of IP rules. |
|
172 | + * @return string list of IP rules. |
|
173 | 173 | * @since 3.1.1 |
174 | 174 | */ |
175 | 175 | public function getIPRules() |
@@ -216,6 +216,9 @@ discard block |
||
216 | 216 | } |
217 | 217 | } |
218 | 218 | |
219 | + /** |
|
220 | + * @param string $ip |
|
221 | + */ |
|
219 | 222 | private function isIpMatched($ip) |
220 | 223 | { |
221 | 224 | if (empty($this->_ipRules)) { |
@@ -229,11 +232,17 @@ discard block |
||
229 | 232 | return 0; |
230 | 233 | } |
231 | 234 | |
235 | + /** |
|
236 | + * @param IUser $user |
|
237 | + */ |
|
232 | 238 | private function isUserMatched($user) |
233 | 239 | { |
234 | 240 | return ($this->_everyone || ($this->_guest && $user->getIsGuest()) || ($this->_authenticated && !$user->getIsGuest()) || in_array(strtolower($user->getName()), $this->_users)); |
235 | 241 | } |
236 | 242 | |
243 | + /** |
|
244 | + * @param IUser $user |
|
245 | + */ |
|
237 | 246 | private function isRoleMatched($user) |
238 | 247 | { |
239 | 248 | foreach ($this->_roles as $role) { |
@@ -244,6 +253,9 @@ discard block |
||
244 | 253 | return false; |
245 | 254 | } |
246 | 255 | |
256 | + /** |
|
257 | + * @param string $verb |
|
258 | + */ |
|
247 | 259 | private function isVerbMatched($verb) |
248 | 260 | { |
249 | 261 | return ($this->_verb === '*' || strcasecmp($verb, $this->_verb) === 0); |
@@ -164,7 +164,7 @@ |
||
164 | 164 | * Creates the DB connection. |
165 | 165 | * @param string $connectionID the module ID for TDataSourceConfig |
166 | 166 | * @throws TConfigurationException if module ID is invalid or empty |
167 | - * @return TDbConnection the created DB connection |
|
167 | + * @return \Prado\Data\TDbConnection the created DB connection |
|
168 | 168 | */ |
169 | 169 | protected function createDbConnection($connectionID) |
170 | 170 | { |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | * </code> |
436 | 436 | * to be executed when listen is called. All attached behaviors are notified through dyListen. |
437 | 437 | * |
438 | - * @return numeric the number of global events that were registered to the global event registry |
|
438 | + * @return null|integer the number of global events that were registered to the global event registry |
|
439 | 439 | */ |
440 | 440 | public function listen() |
441 | 441 | { |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | * </code> |
473 | 473 | * to be executed when listen is called. All attached behaviors are notified through dyUnlisten. |
474 | 474 | * |
475 | - * @return numeric the number of global events that were unregistered from the global event registry |
|
475 | + * @return null|integer the number of global events that were unregistered from the global event registry |
|
476 | 476 | */ |
477 | 477 | public function unlisten() |
478 | 478 | { |