@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @param TDbConnection $conn default database connection |
|
73 | + * @param \Prado\Data\TDbConnection $conn default database connection |
|
74 | 74 | */ |
75 | 75 | public function setDbConnection($conn) |
76 | 76 | { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | |
157 | 157 | /** |
158 | 158 | * Binds a value to a parameter. |
159 | - * @param mixed $name Parameter identifier. For a prepared statement |
|
159 | + * @param string $name Parameter identifier. For a prepared statement |
|
160 | 160 | * using named placeholders, this will be a parameter name of |
161 | 161 | * the form :name. For a prepared statement using question mark |
162 | 162 | * placeholders, this will be the 1-indexed position of the parameter. |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | * This is a convenient method of {@link query} when only a single scalar |
260 | 260 | * value is needed (e.g. obtaining the count of the records). |
261 | 261 | * @throws TDbException execution failed |
262 | - * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value. |
|
262 | + * @return string the value of the first column in the first row of the query result. False is returned if there is no value. |
|
263 | 263 | */ |
264 | 264 | public function queryScalar() |
265 | 265 | { |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * raised in {@link TApplication}. |
119 | 119 | * The method mainly uses appropriate template to display the error/exception. |
120 | 120 | * It terminates the application immediately after the error is displayed. |
121 | - * @param mixed $sender sender of the event |
|
121 | + * @param null|\Prado\TApplication $sender sender of the event |
|
122 | 122 | * @param mixed $param event parameter (if the event is raised by TApplication, it refers to the exception instance) |
123 | 123 | */ |
124 | 124 | public function handleError($sender, $param) |
@@ -385,6 +385,9 @@ discard block |
||
385 | 385 | return $result; |
386 | 386 | } |
387 | 387 | |
388 | + /** |
|
389 | + * @return string |
|
390 | + */ |
|
388 | 391 | private function getExactTraceAsString($exception) |
389 | 392 | { |
390 | 393 | if ($exception instanceof TPhpFatalErrorException && |
@@ -411,6 +414,9 @@ discard block |
||
411 | 414 | return $exception->getTraceAsString(); |
412 | 415 | } |
413 | 416 | |
417 | + /** |
|
418 | + * @param string $pattern |
|
419 | + */ |
|
414 | 420 | private function getPropertyAccessTrace($trace, $pattern) |
415 | 421 | { |
416 | 422 | $result = null; |
@@ -441,6 +447,9 @@ discard block |
||
441 | 447 | return $source; |
442 | 448 | } |
443 | 449 | |
450 | + /** |
|
451 | + * @param string $message |
|
452 | + */ |
|
444 | 453 | private function addLink($message) |
445 | 454 | { |
446 | 455 | if (null !== ($class = $this->getErrorClassNameSpace($message))) { |
@@ -171,6 +171,10 @@ |
||
171 | 171 | return false; |
172 | 172 | } |
173 | 173 | |
174 | + /** |
|
175 | + * @param double $number |
|
176 | + * @param string $set |
|
177 | + */ |
|
174 | 178 | protected function isValidSetNotation($number, $set) |
175 | 179 | { |
176 | 180 | $str = '$result = ' . str_replace('n', '$number', $set) . ';'; |
@@ -210,7 +210,7 @@ |
||
210 | 210 | |
211 | 211 | /** |
212 | 212 | * Gets the CultureInfo that for this culture string |
213 | - * @param mixed $culture |
|
213 | + * @param string $culture |
|
214 | 214 | * @return CultureInfo invariant culture info is "en". |
215 | 215 | */ |
216 | 216 | public static function getInstance($culture) |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | /** |
90 | 90 | * Initialize a new DateFormat. |
91 | - * @param null|CultureInfo|DateTimeFormatInfo|string $formatInfo either, null, a CultureInfo instance, |
|
91 | + * @param string $formatInfo either, null, a CultureInfo instance, |
|
92 | 92 | * a DateTimeFormatInfo instance, or a locale. |
93 | 93 | * @return DateFormat instance |
94 | 94 | */ |
@@ -109,9 +109,9 @@ discard block |
||
109 | 109 | |
110 | 110 | /** |
111 | 111 | * Format a date according to the pattern. |
112 | - * @param mixed $time the time as integer or string in strtotime format. |
|
112 | + * @param string $time the time as integer or string in strtotime format. |
|
113 | 113 | * @param mixed $pattern |
114 | - * @param mixed $charset |
|
114 | + * @param string $charset |
|
115 | 115 | * @return string formatted date time. |
116 | 116 | */ |
117 | 117 | public function format($time, $pattern = 'F', $charset = 'UTF-8') |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * @access public |
123 | 123 | * @param string $pofile path to GNU PO file |
124 | 124 | * @param string $mofile path to GNU MO file |
125 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
125 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
126 | 126 | */ |
127 | 127 | public static function poFile2moFile($pofile, $mofile) |
128 | 128 | { |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | * toMO |
263 | 263 | * |
264 | 264 | * @access protected |
265 | - * @return object File_Gettext_MO |
|
265 | + * @return TGettext_MO File_Gettext_MO |
|
266 | 266 | */ |
267 | 267 | public function toMO() |
268 | 268 | { |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | * toPO |
277 | 277 | * |
278 | 278 | * @access protected |
279 | - * @return object File_Gettext_PO |
|
279 | + * @return TGettext_PO File_Gettext_PO |
|
280 | 280 | */ |
281 | 281 | public function toPO() |
282 | 282 | { |
@@ -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 | { |