@@ -259,6 +259,9 @@ |
||
| 259 | 259 | return $this->getCommand($record)->findAllBySql($criteria); |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | + /** |
|
| 263 | + * @param TActiveRecordCriteria $criteria |
|
| 264 | + */ |
|
| 262 | 265 | public function findRecordsByIndex(TActiveRecord $record, $criteria, $fields, $values) |
| 263 | 266 | { |
| 264 | 267 | return $this->getCommand($record)->findAllByIndex($criteria, $fields, $values); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * @param TDbConnection $connection database connection. |
| 53 | - * @return TDbCommandBuilder new command builder |
|
| 53 | + * @return TOracleCommandBuilder new command builder |
|
| 54 | 54 | */ |
| 55 | 55 | public function createCommandBuilder($connection) |
| 56 | 56 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * @param string $name information array key name |
| 62 | - * @param mixed $default default value if information array value is null |
|
| 62 | + * @param boolean $default default value if information array value is null |
|
| 63 | 63 | * @return mixed information array value. |
| 64 | 64 | */ |
| 65 | 65 | public function getInfo($name, $default = null) |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | /** |
| 311 | 311 | * Build sql command from the criteria. Limit, Offset and Ordering are applied if applicable. |
| 312 | 312 | * @param TSqlCriteria $criteria $criteria |
| 313 | - * @return TDbCommand command corresponding to the criteria. |
|
| 313 | + * @return TDataGatewayCommand command corresponding to the criteria. |
|
| 314 | 314 | */ |
| 315 | 315 | protected function getSqlCommand($criteria) |
| 316 | 316 | { |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | * @param string $method __call method name |
| 383 | 383 | * @param string $condition criteria conditions |
| 384 | 384 | * @param array $args method arguments |
| 385 | - * @return TActiveRecordCriteria criteria created from the method name and its arguments. |
|
| 385 | + * @return TSqlCriteria criteria created from the method name and its arguments. |
|
| 386 | 386 | */ |
| 387 | 387 | public function createCriteriaFromString($method, $condition, $args) |
| 388 | 388 | { |
@@ -222,7 +222,7 @@ |
||
| 222 | 222 | * $table->find($criteria); //the 2nd parameter for find() is ignored. |
| 223 | 223 | * </code> |
| 224 | 224 | * |
| 225 | - * @param string|TSqlCriteria $criteria SQL condition or criteria object. |
|
| 225 | + * @param TSqlCriteria $criteria SQL condition or criteria object. |
|
| 226 | 226 | * @param mixed $parameters parameter values. |
| 227 | 227 | * @return array matching record object. |
| 228 | 228 | */ |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | - * @param string|TSqlMapCacheKey $key cache key |
|
| 155 | + * @param string $key cache key |
|
| 156 | 156 | * @return mixed cached value. |
| 157 | 157 | */ |
| 158 | 158 | public function get($key) |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
| 174 | - * @param string|TSqlMapCacheKey $key cache key |
|
| 174 | + * @param string $key cache key |
|
| 175 | 175 | * @param mixed $value value to be cached. |
| 176 | 176 | */ |
| 177 | 177 | public function set($key, $value) |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | - * @return float cache hit ratio. |
|
| 189 | + * @return integer cache hit ratio. |
|
| 190 | 190 | */ |
| 191 | 191 | public function getHitRatio() |
| 192 | 192 | { |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | /** |
| 180 | - * @param TStaticSql $value sql text container. |
|
| 180 | + * @param \Prado\Data\SqlMap\Statements\TStaticSql $value sql text container. |
|
| 181 | 181 | */ |
| 182 | 182 | public function setSqlText($value) |
| 183 | 183 | { |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | /** |
| 239 | - * @param TInlineParameterMap $map parameter extracted from the sql text. |
|
| 239 | + * @param TParameterMap $map parameter extracted from the sql text. |
|
| 240 | 240 | */ |
| 241 | 241 | public function setInlineParameterMap($map) |
| 242 | 242 | { |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * Create an instance of an object give by the attribute named 'class' in the |
| 27 | 27 | * node and set the properties on the object given by attribute names and values. |
| 28 | 28 | * @param SimpleXmlNode $node property node |
| 29 | - * @return Object new instance of class with class name given by 'class' attribute value. |
|
| 29 | + * @return \Prado\TComponent new instance of class with class name given by 'class' attribute value. |
|
| 30 | 30 | */ |
| 31 | 31 | protected function createObjectFromNode($node) |
| 32 | 32 | { |
@@ -45,9 +45,9 @@ discard block |
||
| 45 | 45 | * For each attributes (excluding attribute named in $except) set the |
| 46 | 46 | * property of the $obj given by the name of the attribute with the value |
| 47 | 47 | * of the attribute. |
| 48 | - * @param object $obj object instance |
|
| 48 | + * @param \Prado\TComponent $obj object instance |
|
| 49 | 49 | * @param SimpleXmlNode $node property node |
| 50 | - * @param array $except exception property name |
|
| 50 | + * @param string[] $except exception property name |
|
| 51 | 51 | */ |
| 52 | 52 | protected function setObjectPropFromNode($obj, $node, $except = []) |
| 53 | 53 | { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | * Load document using simple xml. |
| 94 | 94 | * @param string $filename |
| 95 | 95 | * @param TSqlMapXmlConfiguration $config |
| 96 | - * @return SimpleXmlElement xml document. |
|
| 96 | + * @return \SimpleXMLElement xml document. |
|
| 97 | 97 | */ |
| 98 | 98 | protected function loadXmlDocument($filename, TSqlMapXmlConfiguration $config) |
| 99 | 99 | { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | /** |
| 112 | 112 | * Get element node by ID value (try for attribute name ID as case insensitive). |
| 113 | - * @param SimpleXmlDocument $document |
|
| 113 | + * @param \SimpleXMLElement $document |
|
| 114 | 114 | * @param string $tag tag name. |
| 115 | 115 | * @param string $value id value. |
| 116 | 116 | * @return SimpleXmlElement node if found, null otherwise. |
@@ -401,7 +401,7 @@ |
||
| 401 | 401 | |
| 402 | 402 | /** |
| 403 | 403 | * Load the selectKey statement from xml mapping. |
| 404 | - * @param mixed $insert |
|
| 404 | + * @param TSqlMapInsert $insert |
|
| 405 | 405 | * @param SimpleXmlElement $node selectkey node |
| 406 | 406 | */ |
| 407 | 407 | protected function loadSelectKeyTag($insert, $node) |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | /** |
| 85 | 85 | * @param mixed $id |
| 86 | 86 | * @param mixed $value |
| 87 | - * @param mixed $expire |
|
| 87 | + * @param integer $expire |
|
| 88 | 88 | * @param null|mixed $dependency |
| 89 | 89 | * @throws TSqlMapException not implemented. |
| 90 | 90 | */ |