@@ -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( |
@@ -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) . ';'; |