@@ -23,7 +23,7 @@ |
||
23 | 23 | public function getID(); |
24 | 24 | |
25 | 25 | /** |
26 | - * @return TSqlMapStatement The SQL statment used by this TMappedStatement. |
|
26 | + * @return \Prado\Data\SqlMap\Configuration\TSqlMapStatement The SQL statment used by this TMappedStatement. |
|
27 | 27 | */ |
28 | 28 | public function getStatement(); |
29 | 29 |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
99 | - * @return TSqlMapper The SqlMap used by this MappedStatement |
|
99 | + * @return TSqlMapManager The SqlMap used by this MappedStatement |
|
100 | 100 | */ |
101 | 101 | public function getManager() |
102 | 102 | { |
@@ -481,6 +481,7 @@ discard block |
||
481 | 481 | * @param IDbConnection database connection |
482 | 482 | * @param mixed insert statement parameter |
483 | 483 | * @param TSqlMapSelectKey select key statement |
484 | + * @param \Prado\Data\SqlMap\Configuration\TSqlMapSelectKey $selectKey |
|
484 | 485 | * @return string last insert ID. |
485 | 486 | */ |
486 | 487 | protected function executeSelectKey($connection, $parameter, $selectKey) |
@@ -581,6 +582,7 @@ discard block |
||
581 | 582 | * @param string result object class name |
582 | 583 | * @param array a result set row retrieved from the database |
583 | 584 | * @param object the result object, will create if necessary. |
585 | + * @param string $resultClass |
|
584 | 586 | * @return object result object filled with data |
585 | 587 | */ |
586 | 588 | protected function fillResultClass($resultClass, $row, $resultObject) |
@@ -603,6 +605,7 @@ discard block |
||
603 | 605 | * Apply the result to a TList or an array. |
604 | 606 | * @param array a result set row retrieved from the database |
605 | 607 | * @param object result object, array or list |
608 | + * @param \ArrayAccess $resultObject |
|
606 | 609 | * @return object result filled with data. |
607 | 610 | */ |
608 | 611 | protected function fillResultArrayList($row, $resultObject) |
@@ -645,6 +648,7 @@ discard block |
||
645 | 648 | * @param string result map name. |
646 | 649 | * @param array a result set row retrieved from the database |
647 | 650 | * @param object result object to fill, will create new instances if required. |
651 | + * @param string $parentGroup |
|
648 | 652 | * @return object result object filled with data. |
649 | 653 | */ |
650 | 654 | protected function fillResultMap($resultMapName, $row, $parentGroup=null, &$resultObject=null) |
@@ -784,6 +788,7 @@ discard block |
||
784 | 788 | * Converts the first array value to scalar value of given type. |
785 | 789 | * @param array list of results |
786 | 790 | * @param string scalar type. |
791 | + * @param string $type |
|
787 | 792 | * @return mixed scalar value. |
788 | 793 | */ |
789 | 794 | protected function getScalarResult($result, $type) |
@@ -39,5 +39,9 @@ |
||
39 | 39 | public function setKeys($value){ $this->_keys = $value; } |
40 | 40 | |
41 | 41 | public function getMethod(){ return $this->_method; } |
42 | + |
|
43 | + /** |
|
44 | + * @param integer $value |
|
45 | + */ |
|
42 | 46 | public function setMethod($value){ $this->_method = $value; } |
43 | 47 | } |
44 | 48 | \ No newline at end of file |
@@ -26,6 +26,9 @@ discard block |
||
26 | 26 | */ |
27 | 27 | class TPreparedCommand |
28 | 28 | { |
29 | + /** |
|
30 | + * @param \Prado\Data\SqlMap\Configuration\TSqlMapStatement $statement |
|
31 | + */ |
|
29 | 32 | public function create(TSqlMapManager $manager, $connection, $statement, $parameterObject,$skip=null,$max=null) |
30 | 33 | { |
31 | 34 | $sqlText = $statement->getSQLText(); |
@@ -48,6 +51,9 @@ discard block |
||
48 | 51 | return $command; |
49 | 52 | } |
50 | 53 | |
54 | + /** |
|
55 | + * @param TSqlMapManager $manager |
|
56 | + */ |
|
51 | 57 | protected function applyParameterMap($manager,$command,$prepared, $statement, $parameterObject) |
52 | 58 | { |
53 | 59 | $properties = $prepared->getParameterNames(false); |
@@ -24,6 +24,9 @@ |
||
24 | 24 | private $_parameterObject; |
25 | 25 | private $_list; |
26 | 26 | |
27 | + /** |
|
28 | + * @param \ArrayAccess $list |
|
29 | + */ |
|
27 | 30 | public function __construct($result, $parameter, &$list) |
28 | 31 | { |
29 | 32 | $this->_resultObject = $result; |
@@ -53,6 +53,7 @@ |
||
53 | 53 | * @param string parent node id |
54 | 54 | * @param string new node id |
55 | 55 | * @param mixed node value |
56 | + * @param string $node |
|
56 | 57 | */ |
57 | 58 | public function add($parent, $node, $object='') |
58 | 59 | { |
@@ -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) |
@@ -269,7 +270,7 @@ discard block |
||
269 | 270 | * Executes the SQL statement and returns the value of the first column in the first row of data. |
270 | 271 | * This is a convenient method of {@link query} when only a single scalar |
271 | 272 | * value is needed (e.g. obtaining the count of the records). |
272 | - * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value. |
|
273 | + * @return string the value of the first column in the first row of the query result. False is returned if there is no value. |
|
273 | 274 | * @throws TDbException execution failed |
274 | 275 | */ |
275 | 276 | public function queryScalar() |