@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @access private |
| 88 | 88 | * @param int $bytes $bytes |
| 89 | - * @return mixed |
|
| 89 | + * @return string|null |
|
| 90 | 90 | */ |
| 91 | 91 | public function _read($bytes = 1) |
| 92 | 92 | { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | * |
| 166 | 166 | * @access public |
| 167 | 167 | * @param string $file $file |
| 168 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
| 168 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
| 169 | 169 | */ |
| 170 | 170 | public function load($file = null) |
| 171 | 171 | { |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | * |
| 261 | 261 | * @access public |
| 262 | 262 | * @param string $file $file |
| 263 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
| 263 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
| 264 | 264 | */ |
| 265 | 265 | public function save($file = null) |
| 266 | 266 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @access public |
| 70 | 70 | * @param string $file $file |
| 71 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
| 71 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
| 72 | 72 | */ |
| 73 | 73 | public function load($file = null) |
| 74 | 74 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * |
| 125 | 125 | * @access public |
| 126 | 126 | * @param string $file $file |
| 127 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
| 127 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
| 128 | 128 | */ |
| 129 | 129 | public function save($file = null) |
| 130 | 130 | { |
@@ -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 | { |