@@ -109,6 +109,10 @@ |
||
| 109 | 109 | return $cacheKey->getHash(); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param integer $skip |
|
| 114 | + * @param integer $max |
|
| 115 | + */ |
|
| 112 | 116 | protected function createCommand($connection, $parameter, $skip = null, $max = null) |
| 113 | 117 | { |
| 114 | 118 | return $this->_mappedStatement->getCommand()->create( |
@@ -22,6 +22,10 @@ |
||
| 22 | 22 | { |
| 23 | 23 | private $_preparedStatement; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param \Prado\Data\SqlMap\Configuration\TSqlMapStatement $statement |
|
| 27 | + * @param string $sqlString |
|
| 28 | + */ |
|
| 25 | 29 | public function buildPreparedStatement($statement, $sqlString) |
| 26 | 30 | { |
| 27 | 31 | $factory = new TPreparedStatementFactory($statement, $sqlString); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * Saves the current SqlMap manager to cache. |
| 83 | - * @param mixed $manager |
|
| 83 | + * @param TSqlMapManager $manager |
|
| 84 | 84 | * @return bool true if SqlMap manager was cached, false otherwise. |
| 85 | 85 | */ |
| 86 | 86 | protected function cacheSqlMapManager($manager) |
@@ -35,6 +35,9 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | private $_manager; |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param TSqlMapManager $manager |
|
| 40 | + */ |
|
| 38 | 41 | public function __construct($manager) |
| 39 | 42 | { |
| 40 | 43 | $this->_manager = $manager; |
@@ -124,7 +127,7 @@ discard block |
||
| 124 | 127 | * @param mixed $parameter The object used to set the parameters in the SQL. |
| 125 | 128 | * @param int $pageSize The maximum number of objects to store in each page. |
| 126 | 129 | * @param int $page The number of the page to initially load into the list. |
| 127 | - * @return TPagedList A PaginatedList of beans containing the rows. |
|
| 130 | + * @return TSqlMapPagedList A PaginatedList of beans containing the rows. |
|
| 128 | 131 | */ |
| 129 | 132 | public function queryForPagedList($statementName, $parameter = null, $pageSize = 10, $page = 0) |
| 130 | 133 | { |
@@ -145,7 +148,7 @@ discard block |
||
| 145 | 148 | * @param null|mixed $parameter The object used to set the parameters in the SQL. |
| 146 | 149 | * @param int $pageSize The maximum number of objects to store in each page. |
| 147 | 150 | * @param int $page The number of the page to initially load into the list. |
| 148 | - * @return TPagedList A PaginatedList of beans containing the rows. |
|
| 151 | + * @return TSqlMapPagedList A PaginatedList of beans containing the rows. |
|
| 149 | 152 | */ |
| 150 | 153 | public function queryForPagedListWithRowDelegate($statementName, $delegate, $parameter = null, $pageSize = 10, $page = 0) |
| 151 | 154 | { |
@@ -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 | { |
@@ -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') |