@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * @param TDbConnection database connection. |
| 57 | - * @return TDbCommandBuilder new command builder |
|
| 57 | + * @return TMssqlCommandBuilder new command builder |
|
| 58 | 58 | */ |
| 59 | 59 | public function createCommandBuilder($connection) |
| 60 | 60 | { |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @param TDbConnection database connection. |
| 51 | - * @return TDbCommandBuilder new command builder |
|
| 51 | + * @return TMysqlCommandBuilder new command builder |
|
| 52 | 52 | */ |
| 53 | 53 | public function createCommandBuilder($connection) |
| 54 | 54 | { |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @param TDbConnection database connection. |
| 51 | - * @return TDbCommandBuilder new command builder |
|
| 51 | + * @return TPgsqlCommandBuilder new command builder |
|
| 52 | 52 | */ |
| 53 | 53 | public function createCommandBuilder($connection) |
| 54 | 54 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | 31 | * @param TDbConnection database connection. |
| 32 | - * @return TDbCommandBuilder new command builder |
|
| 32 | + * @return TSqliteCommandBuilder new command builder |
|
| 33 | 33 | */ |
| 34 | 34 | public function createCommandBuilder($connection) |
| 35 | 35 | { |
@@ -191,7 +191,6 @@ discard block |
||
| 191 | 191 | * array('col1' => 'NULL', '*') |
| 192 | 192 | * // SELECT `col1`, `col2`, `col3`, NULL AS `col1` FROM... |
| 193 | 193 | * </code> |
| 194 | - * @param mixed $value |
|
| 195 | 194 | * @return array of generated fields - use implode(', ', $selectfieldlist) to collapse field list for usage |
| 196 | 195 | * @since 3.1.7 |
| 197 | 196 | * @todo add support for table aliasing |
@@ -399,7 +398,7 @@ discard block |
||
| 399 | 398 | /** |
| 400 | 399 | * Returns a list of insert field name and a list of binding names. |
| 401 | 400 | * @param object array or object to be inserted. |
| 402 | - * @return array tuple ($fields, $bindings) |
|
| 401 | + * @return string[] tuple ($fields, $bindings) |
|
| 403 | 402 | */ |
| 404 | 403 | protected function getInsertFieldBindings($values) |
| 405 | 404 | { |
@@ -84,6 +84,7 @@ discard block |
||
| 84 | 84 | * Updates the table with new data. |
| 85 | 85 | * @param array date for update. |
| 86 | 86 | * @param TSqlCriteria update conditions and parameters. |
| 87 | + * @param TSqlCriteria $criteria |
|
| 87 | 88 | * @return integer number of records affected. |
| 88 | 89 | */ |
| 89 | 90 | public function update($data, $criteria) |
@@ -369,7 +370,8 @@ discard block |
||
| 369 | 370 | * @param string __call method name |
| 370 | 371 | * @param string criteria conditions |
| 371 | 372 | * @param array method arguments |
| 372 | - * @return TActiveRecordCriteria criteria created from the method name and its arguments. |
|
| 373 | + * @param string $condition |
|
| 374 | + * @return TSqlCriteria criteria created from the method name and its arguments. |
|
| 373 | 375 | */ |
| 374 | 376 | public function createCriteriaFromString($method, $condition, $args) |
| 375 | 377 | { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @param string serialized object |
|
| 36 | + * @param string string object |
|
| 37 | 37 | * @return string crc32 hash of the serialized object. |
| 38 | 38 | */ |
| 39 | 39 | protected function generateKey($string) |
@@ -149,6 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | /** |
| 151 | 151 | * @param TSqlMapCacheKey|string cache key |
| 152 | + * @param string $key |
|
| 152 | 153 | * @return mixed cached value. |
| 153 | 154 | */ |
| 154 | 155 | public function get($key) |
@@ -167,6 +168,7 @@ discard block |
||
| 167 | 168 | /** |
| 168 | 169 | * @param TSqlMapCacheKey|string cache key |
| 169 | 170 | * @param mixed value to be cached. |
| 171 | + * @param string $key |
|
| 170 | 172 | */ |
| 171 | 173 | public function set($key, $value) |
| 172 | 174 | { |
@@ -178,7 +180,7 @@ discard block |
||
| 178 | 180 | } |
| 179 | 181 | |
| 180 | 182 | /** |
| 181 | - * @return float cache hit ratio. |
|
| 183 | + * @return integer cache hit ratio. |
|
| 182 | 184 | */ |
| 183 | 185 | public function getHitRatio() |
| 184 | 186 | { |
@@ -38,6 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * @param TSqlMapManager manager instance. |
| 41 | + * @param \Prado\Data\SqlMap\TSqlMapManager $manager |
|
| 41 | 42 | */ |
| 42 | 43 | public function __construct($manager) |
| 43 | 44 | { |