@@ -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 | */ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * @param IMappedStatement $statement SqlMap statement. |
44 | 44 | * @param mixed $parameter query parameters |
45 | 45 | * @param int $pageSize page size |
46 | - * @param null|mixed $delegate delegate for each data row retrieved. |
|
46 | + * @param null|callable $delegate delegate for each data row retrieved. |
|
47 | 47 | * @param int $page number of page to fetch on initialization |
48 | 48 | */ |
49 | 49 | public function __construct(IMappedStatement $statement, $parameter, $pageSize, $delegate = null, $page = 0) |
@@ -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( |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
100 | - * @return TSqlMapper The SqlMap used by this MappedStatement |
|
100 | + * @return TSqlMapManager The SqlMap used by this MappedStatement |
|
101 | 101 | */ |
102 | 102 | public function getManager() |
103 | 103 | { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | /** |
124 | 124 | * Creates a new mapped statement. |
125 | - * @param TSqlMapper $sqlMap an sqlmap. |
|
125 | + * @param TSqlMapManager $sqlMap an sqlmap. |
|
126 | 126 | * @param TSqlMapStatement $statement An SQL statement. |
127 | 127 | */ |
128 | 128 | public function __construct(TSqlMapManager $sqlMap, TSqlMapStatement $statement) |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | * Raises delegate handler. |
338 | 338 | * This method is invoked for each new list item. It is the responsibility |
339 | 339 | * of the handler to add the item to the list. |
340 | - * @param object $handler event parameter |
|
340 | + * @param callable $handler event parameter |
|
341 | 341 | * @param mixed $param |
342 | 342 | */ |
343 | 343 | protected function raiseRowDelegate($handler, $param) |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | * Execute the select key statement, used to obtain last insert ID. |
469 | 469 | * @param IDbConnection $connection database connection |
470 | 470 | * @param mixed $parameter insert statement parameter |
471 | - * @param TSqlMapSelectKey $selectKey select key statement |
|
471 | + * @param \Prado\Data\SqlMap\Configuration\TSqlMapSelectKey $selectKey select key statement |
|
472 | 472 | * @return string last insert ID. |
473 | 473 | */ |
474 | 474 | protected function executeSelectKey($connection, $parameter, $selectKey) |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | /** |
596 | 596 | * Apply the result to a TList or an array. |
597 | 597 | * @param array $row a result set row retrieved from the database |
598 | - * @param object $resultObject result object, array or list |
|
598 | + * @param \ArrayAccess $resultObject result object, array or list |
|
599 | 599 | * @return object result filled with data. |
600 | 600 | */ |
601 | 601 | protected function fillResultArrayList($row, $resultObject) |
@@ -640,7 +640,7 @@ discard block |
||
640 | 640 | * Fills the result object according to result mappings. |
641 | 641 | * @param string $resultMapName result map name. |
642 | 642 | * @param array $row a result set row retrieved from the database |
643 | - * @param null|mixed $parentGroup |
|
643 | + * @param null|string $parentGroup |
|
644 | 644 | * @param null|&object $resultObject result object to fill, will create new instances if required. |
645 | 645 | * @return object result object filled with data. |
646 | 646 | */ |
@@ -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) |