@@ -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 | { |
@@ -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) { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * with a string that represent a culture/locale. Similarly, passing |
| 86 | 86 | * a CultureInfo or NumberFormatInfo instance will instantiated a instance |
| 87 | 87 | * for that particular culture. |
| 88 | - * @param null|CultureInfo|NumberFormatInfo|string $formatInfo either null, a CultureInfo, a NumberFormatInfo, or string |
|
| 88 | + * @param string $formatInfo either null, a CultureInfo, a NumberFormatInfo, or string |
|
| 89 | 89 | * @return NumberFormat |
| 90 | 90 | */ |
| 91 | 91 | public function __construct($formatInfo = null) |
@@ -106,13 +106,13 @@ discard block |
||
| 106 | 106 | * For the number for a certain pattern. The valid patterns are |
| 107 | 107 | * 'c', 'd', 'e', 'p' or a custom pattern, such as "#.000" for |
| 108 | 108 | * 3 decimal places. |
| 109 | - * @param mixed $number the number to format. |
|
| 109 | + * @param string $number the number to format. |
|
| 110 | 110 | * @param string $pattern the format pattern, either, 'c', 'd', 'e', 'p' |
| 111 | 111 | * or a custom pattern. E.g. "#.000" will format the number to |
| 112 | 112 | * 3 decimal places. |
| 113 | 113 | * @param string $currency 3-letter ISO 4217 code. For example, the code |
| 114 | 114 | * "USD" represents the US Dollar and "EUR" represents the Euro currency. |
| 115 | - * @param mixed $charset |
|
| 115 | + * @param string $charset |
|
| 116 | 116 | * @return string formatted number string |
| 117 | 117 | */ |
| 118 | 118 | public function format($number, $pattern = 'd', $currency = 'USD', $charset = 'UTF-8') |
@@ -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, |
@@ -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 | { |