@@ -109,6 +109,7 @@ discard block |
||
109 | 109 | * It terminates the application immediately after the error is displayed. |
110 | 110 | * @param mixed sender of the event |
111 | 111 | * @param mixed event parameter (if the event is raised by TApplication, it refers to the exception instance) |
112 | + * @param null|TApplication $sender |
|
112 | 113 | */ |
113 | 114 | public function handleError($sender,$param) |
114 | 115 | { |
@@ -363,6 +364,9 @@ discard block |
||
363 | 364 | return $result; |
364 | 365 | } |
365 | 366 | |
367 | + /** |
|
368 | + * @param string $pattern |
|
369 | + */ |
|
366 | 370 | private function getPropertyAccessTrace($trace,$pattern) |
367 | 371 | { |
368 | 372 | $result=null; |
@@ -395,6 +399,9 @@ discard block |
||
395 | 399 | return $source; |
396 | 400 | } |
397 | 401 | |
402 | + /** |
|
403 | + * @param string $message |
|
404 | + */ |
|
398 | 405 | private function addLink($message) |
399 | 406 | { |
400 | 407 | $baseUrl='http://pradosoft.github.io/docs/manual/class-'; |
@@ -393,6 +393,7 @@ |
||
393 | 393 | * in the message file. If so, the message in the preferred language |
394 | 394 | * will be used as the error message. Any rest parameters will be used |
395 | 395 | * to replace placeholders ({0}, {1}, {2}, etc.) in the message. |
396 | + * @param string $errorMessage |
|
396 | 397 | */ |
397 | 398 | public function __construct($statusCode,$errorMessage) |
398 | 399 | { |
@@ -165,6 +165,9 @@ |
||
165 | 165 | return false; |
166 | 166 | } |
167 | 167 | |
168 | + /** |
|
169 | + * @param string $set |
|
170 | + */ |
|
168 | 171 | protected function isValidSetNotation($number, $set) |
169 | 172 | { |
170 | 173 | $str = '$result = '.str_replace('n', '$number', $set).';'; |
@@ -200,6 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | /** |
202 | 202 | * Gets the CultureInfo that for this culture string |
203 | + * @param string $culture |
|
203 | 204 | * @return CultureInfo invariant culture info is "en". |
204 | 205 | */ |
205 | 206 | public static function getInstance($culture) |
@@ -228,6 +229,7 @@ discard block |
||
228 | 229 | * Set the culture for the current instance. The culture indentifier |
229 | 230 | * must be of the form "<language>_(country/region)". |
230 | 231 | * @param string culture identifier, e.g. "fr_FR_EURO". |
232 | + * @param string $culture |
|
231 | 233 | */ |
232 | 234 | protected function setCulture($culture) |
233 | 235 | { |
@@ -243,6 +245,7 @@ discard block |
||
243 | 245 | /** |
244 | 246 | * Load the ICU culture data for the specific culture identifier. |
245 | 247 | * @param string the culture identifier. |
248 | + * @param string $culture |
|
246 | 249 | */ |
247 | 250 | protected function loadCultureData($culture) |
248 | 251 | { |
@@ -283,6 +286,7 @@ discard block |
||
283 | 286 | * The data files are cached in a static variable inside |
284 | 287 | * this function. |
285 | 288 | * @param string the ICU data filename |
289 | + * @param string $filename |
|
286 | 290 | * @return array ICU data |
287 | 291 | */ |
288 | 292 | protected function &getData($filename) |
@@ -386,6 +390,7 @@ discard block |
||
386 | 390 | /** |
387 | 391 | * Set the date time format information. |
388 | 392 | * @param DateTimeFormatInfo the new date time format info. |
393 | + * @param DateTimeFormatInfo $dateTimeFormat |
|
389 | 394 | */ |
390 | 395 | function setDateTimeFormat($dateTimeFormat) |
391 | 396 | { |
@@ -493,6 +498,7 @@ discard block |
||
493 | 498 | /** |
494 | 499 | * Set the number format information. |
495 | 500 | * @param NumberFormatInfo the new number format info. |
501 | + * @param NumberFormatInfo $numberFormat |
|
496 | 502 | */ |
497 | 503 | function setNumberFormat($numberFormat) |
498 | 504 | { |
@@ -87,6 +87,7 @@ discard block |
||
87 | 87 | * Initialize a new DateFormat. |
88 | 88 | * @param mixed either, null, a CultureInfo instance, |
89 | 89 | * a DateTimeFormatInfo instance, or a locale. |
90 | + * @param string $formatInfo |
|
90 | 91 | * @return DateFormat instance |
91 | 92 | */ |
92 | 93 | function __construct($formatInfo=null) |
@@ -179,6 +180,7 @@ discard block |
||
179 | 180 | * DateTimeFormatInfo::formatDateTime |
180 | 181 | * See the tutorial documentation for futher details on the patterns. |
181 | 182 | * @param mixed a pattern. |
183 | + * @param string $pattern |
|
182 | 184 | * @return string a pattern. |
183 | 185 | * @see DateTimeFormatInfo::formatDateTime() |
184 | 186 | */ |
@@ -269,6 +271,7 @@ discard block |
||
269 | 271 | * Any substrings, starting and ending with a single quote (') |
270 | 272 | * will be treated as a single token. |
271 | 273 | * @param string pattern. |
274 | + * @param string $pattern |
|
272 | 275 | * @return array string tokens in an array. |
273 | 276 | */ |
274 | 277 | protected function getTokens($pattern) |
@@ -340,6 +340,7 @@ |
||
340 | 340 | /** |
341 | 341 | * A string containing the name of the era. |
342 | 342 | * @param int era The integer representing the era. |
343 | + * @param integer $era |
|
343 | 344 | * @return string the era name. |
344 | 345 | */ |
345 | 346 | function getEra($era) |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * _read |
87 | 87 | * |
88 | 88 | * @access private |
89 | - * @return mixed |
|
89 | + * @return string|null |
|
90 | 90 | * @param int $bytes |
91 | 91 | */ |
92 | 92 | function _read($bytes = 1) |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * Load MO file |
166 | 166 | * |
167 | 167 | * @access public |
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 | * @param string $file |
170 | 170 | */ |
171 | 171 | function load($file = null) |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | * Save MO file |
262 | 262 | * |
263 | 263 | * @access public |
264 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
264 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
265 | 265 | * @param string $file |
266 | 266 | */ |
267 | 267 | function save($file = null) |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * Load PO file |
68 | 68 | * |
69 | 69 | * @access public |
70 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
70 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
71 | 71 | * @param string $file |
72 | 72 | */ |
73 | 73 | function load($file = null) |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * Save PO file |
117 | 117 | * |
118 | 118 | * @access public |
119 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
119 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
120 | 120 | * @param string $file |
121 | 121 | */ |
122 | 122 | function save($file = null) |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * |
119 | 119 | * @static |
120 | 120 | * @access public |
121 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
121 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
122 | 122 | * @param string $pofile path to GNU PO file |
123 | 123 | * @param string $mofile path to GNU MO file |
124 | 124 | */ |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | * toMO |
261 | 261 | * |
262 | 262 | * @access protected |
263 | - * @return object File_Gettext_MO |
|
263 | + * @return TGettext_MO File_Gettext_MO |
|
264 | 264 | */ |
265 | 265 | function toMO() |
266 | 266 | { |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | * toPO |
275 | 275 | * |
276 | 276 | * @access protected |
277 | - * @return object File_Gettext_PO |
|
277 | + * @return TGettext_PO File_Gettext_PO |
|
278 | 278 | */ |
279 | 279 | function toPO() |
280 | 280 | { |