@@ -136,6 +136,7 @@ discard block |
||
136 | 136 | * @param mixed Name of the PHP variable to bind to the SQL statement parameter |
137 | 137 | * @param int SQL data type of the parameter |
138 | 138 | * @param int length of the data type |
139 | + * @param string $name |
|
139 | 140 | * @see http://www.php.net/manual/en/function.PDOStatement-bindParam.php |
140 | 141 | */ |
141 | 142 | public function bindParameter($name, &$value, $dataType=null, $length=null) |
@@ -157,6 +158,7 @@ discard block |
||
157 | 158 | * placeholders, this will be the 1-indexed position of the parameter. |
158 | 159 | * @param mixed The value to bind to the parameter |
159 | 160 | * @param int SQL data type of the parameter |
161 | + * @param string $name |
|
160 | 162 | * @see http://www.php.net/manual/en/function.PDOStatement-bindValue.php |
161 | 163 | */ |
162 | 164 | public function bindValue($name, $value, $dataType=null) |
@@ -58,6 +58,7 @@ |
||
58 | 58 | * should match the case of the column, as returned by the driver. |
59 | 59 | * @param mixed Name of the PHP variable to which the column will be bound. |
60 | 60 | * @param int Data type of the parameter |
61 | + * @param integer $column |
|
61 | 62 | * @see http://www.php.net/manual/en/function.PDOStatement-bindColumn.php |
62 | 63 | */ |
63 | 64 | public function bindColumn($column, &$value, $dataType=null) |
@@ -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 | { |
@@ -171,6 +172,7 @@ discard block |
||
171 | 172 | * mode will be displayed to the client user. |
172 | 173 | * @param integer response status code |
173 | 174 | * @param Exception exception instance |
175 | + * @param integer $statusCode |
|
174 | 176 | */ |
175 | 177 | protected function handleExternalError($statusCode,$exception) |
176 | 178 | { |
@@ -363,6 +365,9 @@ discard block |
||
363 | 365 | return $result; |
364 | 366 | } |
365 | 367 | |
368 | + /** |
|
369 | + * @param string $pattern |
|
370 | + */ |
|
366 | 371 | private function getPropertyAccessTrace($trace,$pattern) |
367 | 372 | { |
368 | 373 | $result=null; |
@@ -395,6 +400,9 @@ discard block |
||
395 | 400 | return $source; |
396 | 401 | } |
397 | 402 | |
403 | + /** |
|
404 | + * @param string $message |
|
405 | + */ |
|
398 | 406 | private function addLink($message) |
399 | 407 | { |
400 | 408 | $baseUrl='http://pradosoft.github.io/docs/manual/class-'; |
@@ -393,6 +393,8 @@ |
||
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 integer $statusCode |
|
397 | + * @param string $errorMessage |
|
396 | 398 | */ |
397 | 399 | public function __construct($statusCode,$errorMessage) |
398 | 400 | { |
@@ -165,6 +165,9 @@ discard block |
||
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).';'; |
@@ -208,6 +211,7 @@ discard block |
||
208 | 211 | * string that satisfied the set within the choices. |
209 | 212 | * @param string the choices string. |
210 | 213 | * @param float the number to test. |
214 | + * @param double $number |
|
211 | 215 | * @return string the choosen string. |
212 | 216 | */ |
213 | 217 | public function format($string, $number) |
@@ -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) |
@@ -106,6 +107,7 @@ discard block |
||
106 | 107 | /** |
107 | 108 | * Format a date according to the pattern. |
108 | 109 | * @param mixed the time as integer or string in strtotime format. |
110 | + * @param string $time |
|
109 | 111 | * @return string formatted date time. |
110 | 112 | */ |
111 | 113 | public function format($time, $pattern='F', $charset='UTF-8') |
@@ -179,6 +181,7 @@ discard block |
||
179 | 181 | * DateTimeFormatInfo::formatDateTime |
180 | 182 | * See the tutorial documentation for futher details on the patterns. |
181 | 183 | * @param mixed a pattern. |
184 | + * @param string $pattern |
|
182 | 185 | * @return string a pattern. |
183 | 186 | * @see DateTimeFormatInfo::formatDateTime() |
184 | 187 | */ |
@@ -269,6 +272,7 @@ discard block |
||
269 | 272 | * Any substrings, starting and ending with a single quote (') |
270 | 273 | * will be treated as a single token. |
271 | 274 | * @param string pattern. |
275 | + * @param string $pattern |
|
272 | 276 | * @return array string tokens in an array. |
273 | 277 | */ |
274 | 278 | protected function getTokens($pattern) |
@@ -271,7 +271,9 @@ |
||
271 | 271 | |
272 | 272 | /** |
273 | 273 | * Update the catalogue last modified time. |
274 | - * @return boolean true if updated, false otherwise. |
|
274 | + * @param integer $cat_id |
|
275 | + * @param string $variant |
|
276 | + * @return resource true if updated, false otherwise. |
|
275 | 277 | */ |
276 | 278 | private function updateCatalogueTime($cat_id, $variant) |
277 | 279 | { |
@@ -86,6 +86,7 @@ discard block |
||
86 | 86 | * a CultureInfo or NumberFormatInfo instance will instantiated a instance |
87 | 87 | * for that particular culture. |
88 | 88 | * @param mixed either null, a CultureInfo, a NumberFormatInfo, or string |
89 | + * @param string $formatInfo |
|
89 | 90 | * @return NumberFormat |
90 | 91 | */ |
91 | 92 | function __construct($formatInfo=null) |
@@ -111,6 +112,7 @@ discard block |
||
111 | 112 | * 3 decimal places. |
112 | 113 | * @param string 3-letter ISO 4217 code. For example, the code |
113 | 114 | * "USD" represents the US Dollar and "EUR" represents the Euro currency. |
115 | + * @param string $number |
|
114 | 116 | * @return string formatted number string |
115 | 117 | */ |
116 | 118 | function format($number, $pattern='d', $currency='USD', $charset='UTF-8') |
@@ -232,7 +234,7 @@ discard block |
||
232 | 234 | |
233 | 235 | /** |
234 | 236 | * Format the decimal places. |
235 | - * @param string the decimal number in string form. |
|
237 | + * @param string string decimal number in string form. |
|
236 | 238 | * @return string formatted decimal places. |
237 | 239 | */ |
238 | 240 | protected function formatDecimal($string) |
@@ -280,6 +282,7 @@ discard block |
||
280 | 282 | * Set the pattern to format against. The default patterns |
281 | 283 | * are retrieved from the NumberFormatInfo instance. |
282 | 284 | * @param string the requested patterns. |
285 | + * @param string $pattern |
|
283 | 286 | * @return string a number format pattern. |
284 | 287 | */ |
285 | 288 | protected function setPattern($pattern) |
@@ -90,7 +90,7 @@ |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @return string default culture |
|
93 | + * @return boolean default culture |
|
94 | 94 | */ |
95 | 95 | public function getTranslateDefaultCulture() |
96 | 96 | { |