@@ -54,6 +54,7 @@ |
||
| 54 | 54 | * @param string parent node id |
| 55 | 55 | * @param string new node id |
| 56 | 56 | * @param mixed node value |
| 57 | + * @param string $node |
|
| 57 | 58 | */ |
| 58 | 59 | public function add($parent, $node, $object = '') |
| 59 | 60 | { |
@@ -36,6 +36,9 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | private $_manager; |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param TSqlMapManager $manager |
|
| 41 | + */ |
|
| 39 | 42 | public function __construct($manager) |
| 40 | 43 | { |
| 41 | 44 | $this->_manager = $manager; |
@@ -125,7 +128,7 @@ discard block |
||
| 125 | 128 | * @param mixed The object used to set the parameters in the SQL. |
| 126 | 129 | * @param integer The maximum number of objects to store in each page. |
| 127 | 130 | * @param integer The number of the page to initially load into the list. |
| 128 | - * @return TPagedList A PaginatedList of beans containing the rows. |
|
| 131 | + * @return TSqlMapPagedList A PaginatedList of beans containing the rows. |
|
| 129 | 132 | */ |
| 130 | 133 | public function queryForPagedList($statementName, $parameter = null, $pageSize = 10, $page = 0) |
| 131 | 134 | { |
@@ -146,7 +149,7 @@ discard block |
||
| 146 | 149 | * @param mixed The object used to set the parameters in the SQL. |
| 147 | 150 | * @param integer The maximum number of objects to store in each page. |
| 148 | 151 | * @param integer The number of the page to initially load into the list. |
| 149 | - * @return TPagedList A PaginatedList of beans containing the rows. |
|
| 152 | + * @return TSqlMapPagedList A PaginatedList of beans containing the rows. |
|
| 150 | 153 | */ |
| 151 | 154 | public function queryForPagedListWithRowDelegate($statementName, $delegate, $parameter = null, $pageSize = 10, $page = 0) |
| 152 | 155 | { |
@@ -61,6 +61,7 @@ discard block |
||
| 61 | 61 | * Constructor, create a new SqlMap manager. |
| 62 | 62 | * @param TDbConnection database connection |
| 63 | 63 | * @param string configuration file. |
| 64 | + * @param \Prado\Data\TDbConnection $connection |
|
| 64 | 65 | */ |
| 65 | 66 | public function __construct($connection = null) |
| 66 | 67 | { |
@@ -74,6 +75,7 @@ discard block |
||
| 74 | 75 | |
| 75 | 76 | /** |
| 76 | 77 | * @param TDbConnection default database connection |
| 78 | + * @param \Prado\Data\TDbConnection $conn |
|
| 77 | 79 | */ |
| 78 | 80 | public function setDbConnection($conn) |
| 79 | 81 | { |
@@ -111,6 +113,7 @@ discard block |
||
| 111 | 113 | /** |
| 112 | 114 | * Loads and parses the SqlMap configuration file. |
| 113 | 115 | * @param string xml configuration file. |
| 116 | + * @param string $file |
|
| 114 | 117 | */ |
| 115 | 118 | public function configureXml($file) |
| 116 | 119 | { |
@@ -165,6 +165,7 @@ discard block |
||
| 165 | 165 | * placeholders, this will be the 1-indexed position of the parameter. |
| 166 | 166 | * @param mixed The value to bind to the parameter |
| 167 | 167 | * @param int SQL data type of the parameter |
| 168 | + * @param string $name |
|
| 168 | 169 | * @see http://www.php.net/manual/en/function.PDOStatement-bindValue.php |
| 169 | 170 | */ |
| 170 | 171 | public function bindValue($name, $value, $dataType = null) |
@@ -268,7 +269,7 @@ discard block |
||
| 268 | 269 | * Executes the SQL statement and returns the value of the first column in the first row of data. |
| 269 | 270 | * This is a convenient method of {@link query} when only a single scalar |
| 270 | 271 | * value is needed (e.g. obtaining the count of the records). |
| 271 | - * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value. |
|
| 272 | + * @return string the value of the first column in the first row of the query result. False is returned if there is no value. |
|
| 272 | 273 | * @throws TDbException execution failed |
| 273 | 274 | */ |
| 274 | 275 | public function queryScalar() |
@@ -118,6 +118,7 @@ discard block |
||
| 118 | 118 | * It terminates the application immediately after the error is displayed. |
| 119 | 119 | * @param mixed sender of the event |
| 120 | 120 | * @param mixed event parameter (if the event is raised by TApplication, it refers to the exception instance) |
| 121 | + * @param null|\Prado\TApplication $sender |
|
| 121 | 122 | */ |
| 122 | 123 | public function handleError($sender, $param) |
| 123 | 124 | { |
@@ -187,6 +188,7 @@ discard block |
||
| 187 | 188 | * mode will be displayed to the client user. |
| 188 | 189 | * @param integer response status code |
| 189 | 190 | * @param Exception exception instance |
| 191 | + * @param integer $statusCode |
|
| 190 | 192 | */ |
| 191 | 193 | protected function handleExternalError($statusCode, $exception) |
| 192 | 194 | { |
@@ -383,6 +385,9 @@ discard block |
||
| 383 | 385 | return $result; |
| 384 | 386 | } |
| 385 | 387 | |
| 388 | + /** |
|
| 389 | + * @return string |
|
| 390 | + */ |
|
| 386 | 391 | private function getExactTraceAsString($exception) |
| 387 | 392 | { |
| 388 | 393 | if($exception instanceof TPhpFatalErrorException && |
@@ -410,6 +415,9 @@ discard block |
||
| 410 | 415 | return $exception->getTraceAsString(); |
| 411 | 416 | } |
| 412 | 417 | |
| 418 | + /** |
|
| 419 | + * @param string $pattern |
|
| 420 | + */ |
|
| 413 | 421 | private function getPropertyAccessTrace($trace, $pattern) |
| 414 | 422 | { |
| 415 | 423 | $result = null; |
@@ -442,6 +450,9 @@ discard block |
||
| 442 | 450 | return $source; |
| 443 | 451 | } |
| 444 | 452 | |
| 453 | + /** |
|
| 454 | + * @param string $message |
|
| 455 | + */ |
|
| 445 | 456 | private function addLink($message) { |
| 446 | 457 | if (null !== ($class = $this->getErrorClassNameSpace($message))) { |
| 447 | 458 | return str_replace($class['name'], '<a href="' . $class['url'] . '" target="_blank">' . $class['name'] . '</a>', $message); |
@@ -90,6 +90,7 @@ discard block |
||
| 90 | 90 | * Initialize a new DateFormat. |
| 91 | 91 | * @param mixed either, null, a CultureInfo instance, |
| 92 | 92 | * a DateTimeFormatInfo instance, or a locale. |
| 93 | + * @param string $formatInfo |
|
| 93 | 94 | * @return DateFormat instance |
| 94 | 95 | */ |
| 95 | 96 | public function __construct($formatInfo = null) |
@@ -109,6 +110,7 @@ discard block |
||
| 109 | 110 | /** |
| 110 | 111 | * Format a date according to the pattern. |
| 111 | 112 | * @param mixed the time as integer or string in strtotime format. |
| 113 | + * @param string $time |
|
| 112 | 114 | * @return string formatted date time. |
| 113 | 115 | */ |
| 114 | 116 | public function format($time, $pattern = 'F', $charset = 'UTF-8') |
@@ -181,6 +183,7 @@ discard block |
||
| 181 | 183 | * DateTimeFormatInfo::formatDateTime |
| 182 | 184 | * See the tutorial documentation for futher details on the patterns. |
| 183 | 185 | * @param mixed a pattern. |
| 186 | + * @param string $pattern |
|
| 184 | 187 | * @return string a pattern. |
| 185 | 188 | * @see DateTimeFormatInfo::formatDateTime() |
| 186 | 189 | */ |
@@ -271,6 +274,7 @@ discard block |
||
| 271 | 274 | * Any substrings, starting and ending with a single quote (') |
| 272 | 275 | * will be treated as a single token. |
| 273 | 276 | * @param string pattern. |
| 277 | + * @param string $pattern |
|
| 274 | 278 | * @return array string tokens in an array. |
| 275 | 279 | */ |
| 276 | 280 | protected function getTokens($pattern) |
@@ -103,9 +103,7 @@ |
||
| 103 | 103 | * Get the data from the cache. |
| 104 | 104 | * @param string $catalogue The translation section. |
| 105 | 105 | * @param string $culture The translation locale, e.g. "en_AU". |
| 106 | - * @param string $filename If the source is a file, this file's modified |
|
| 107 | - * time is newer than the cache's modified time, no cache hit. |
|
| 108 | - * @return mixed Boolean FALSE if no cache hit. Otherwise, translation |
|
| 106 | + * @return false|string Boolean FALSE if no cache hit. Otherwise, translation |
|
| 109 | 107 | * table data for the specified section and locale. |
| 110 | 108 | */ |
| 111 | 109 | public function get($catalogue, $culture, $lastmodified = 0) |
@@ -199,6 +199,9 @@ discard block |
||
| 199 | 199 | return false; |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | + /** |
|
| 203 | + * @param string $MOFile |
|
| 204 | + */ |
|
| 202 | 205 | private function getPOFile($MOFile) |
| 203 | 206 | { |
| 204 | 207 | $filebase = substr($MOFile, 0, strlen($MOFile) - strlen($this->dataExt)); |
@@ -421,6 +424,9 @@ discard block |
||
| 421 | 424 | return $catalogue; |
| 422 | 425 | } |
| 423 | 426 | |
| 427 | + /** |
|
| 428 | + * @param string $catalogue |
|
| 429 | + */ |
|
| 424 | 430 | protected function createMessageTemplate($catalogue) |
| 425 | 431 | { |
| 426 | 432 | if($catalogue === null) { |
@@ -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 | public 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 | public 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) |