@@ -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 | { |
@@ -103,6 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | /** |
105 | 105 | * @param TDbTableInfo table or view information. |
106 | + * @param TDbTableInfo $tableInfo |
|
106 | 107 | */ |
107 | 108 | protected function setTableInfo($tableInfo) |
108 | 109 | { |
@@ -113,6 +114,7 @@ discard block |
||
113 | 114 | /** |
114 | 115 | * Sets up the command builder for the given table. |
115 | 116 | * @param string table or view name. |
117 | + * @param string $tableName |
|
116 | 118 | */ |
117 | 119 | protected function setTableName($tableName) |
118 | 120 | { |
@@ -224,6 +226,7 @@ discard block |
||
224 | 226 | * |
225 | 227 | * @param string|TSqlCriteria SQL condition or criteria object. |
226 | 228 | * @param mixed parameter values. |
229 | + * @param TSqlCriteria $criteria |
|
227 | 230 | * @return array matching record object. |
228 | 231 | */ |
229 | 232 | public function find($criteria, $parameters=array()) |
@@ -237,6 +240,7 @@ discard block |
||
237 | 240 | * Accepts same parameters as find(), but returns TDbDataReader instead. |
238 | 241 | * @param string|TSqlCriteria SQL condition or criteria object. |
239 | 242 | * @param mixed parameter values. |
243 | + * @param TSqlCriteria $criteria |
|
240 | 244 | * @return TDbDataReader matching records. |
241 | 245 | */ |
242 | 246 | public function findAll($criteria=null, $parameters=array()) |
@@ -299,6 +303,7 @@ discard block |
||
299 | 303 | * </code> |
300 | 304 | * @param string delete condition. |
301 | 305 | * @param array condition parameters. |
306 | + * @param TSqlCriteria $criteria |
|
302 | 307 | * @return integer number of records deleted. |
303 | 308 | */ |
304 | 309 | public function deleteAll($criteria, $parameters=array()) |
@@ -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 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * Create an instance of an object give by the attribute named 'class' in the |
28 | 28 | * node and set the properties on the object given by attribute names and values. |
29 | 29 | * @param SimpleXmlNode property node |
30 | - * @return Object new instance of class with class name given by 'class' attribute value. |
|
30 | + * @return \Prado\TComponent new instance of class with class name given by 'class' attribute value. |
|
31 | 31 | */ |
32 | 32 | protected function createObjectFromNode($node) |
33 | 33 | { |
@@ -47,6 +47,7 @@ discard block |
||
47 | 47 | * @param Object object instance |
48 | 48 | * @param SimpleXmlNode property node |
49 | 49 | * @param array exception property name |
50 | + * @param \Prado\TComponent $obj |
|
50 | 51 | */ |
51 | 52 | protected function setObjectPropFromNode($obj,$node,$except=array()) |
52 | 53 | { |
@@ -67,6 +68,8 @@ discard block |
||
67 | 68 | * Gets the filename relative to the basefile. |
68 | 69 | * @param string base filename |
69 | 70 | * @param string relative filename |
71 | + * @param string $basefile |
|
72 | + * @param string $resource |
|
70 | 73 | * @return string absolute filename. |
71 | 74 | */ |
72 | 75 | protected function getAbsoluteFilePath($basefile,$resource) |
@@ -84,7 +87,7 @@ discard block |
||
84 | 87 | /** |
85 | 88 | * Load document using simple xml. |
86 | 89 | * @param string filename. |
87 | - * @return SimpleXmlElement xml document. |
|
90 | + * @return \SimpleXMLElement xml document. |
|
88 | 91 | */ |
89 | 92 | protected function loadXmlDocument($filename,TSqlMapXmlConfiguration $config) |
90 | 93 | { |
@@ -97,9 +100,10 @@ discard block |
||
97 | 100 | } |
98 | 101 | /** |
99 | 102 | * Get element node by ID value (try for attribute name ID as case insensitive). |
100 | - * @param SimpleXmlDocument $document |
|
103 | + * @param \SimpleXMLElement $document |
|
101 | 104 | * @param string tag name. |
102 | 105 | * @param string id value. |
106 | + * @param string $tag |
|
103 | 107 | * @return SimpleXmlElement node if found, null otherwise. |
104 | 108 | */ |
105 | 109 | protected function getElementByIdValue($document, $tag, $value) |
@@ -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 | { |
@@ -255,6 +255,7 @@ discard block |
||
255 | 255 | * in the sql text. Extracts inline parameter maps. |
256 | 256 | * @param TSqlMapStatement mapped statement. |
257 | 257 | * @param SimpleXmlElement statement node. |
258 | + * @param TSqlMapStatement $statement |
|
258 | 259 | */ |
259 | 260 | protected function processSqlStatement($statement, $node) |
260 | 261 | { |
@@ -278,6 +279,7 @@ discard block |
||
278 | 279 | * @param TSqlMapStatement statement object. |
279 | 280 | * @param string sql text |
280 | 281 | * @param SimpleXmlElement statement node. |
282 | + * @param string $sqlStatement |
|
281 | 283 | */ |
282 | 284 | protected function applyInlineParameterMap($statement, $sqlStatement, $node) |
283 | 285 | { |
@@ -375,6 +377,7 @@ discard block |
||
375 | 377 | /** |
376 | 378 | * Load the selectKey statement from xml mapping. |
377 | 379 | * @param SimpleXmlElement selectkey node |
380 | + * @param TSqlMapInsert $insert |
|
378 | 381 | */ |
379 | 382 | protected function loadSelectKeyTag($insert, $node) |
380 | 383 | { |
@@ -465,6 +468,7 @@ discard block |
||
465 | 468 | * Load the flush interval |
466 | 469 | * @param TSqlMapCacheModel cache model |
467 | 470 | * @param SimpleXmlElement cache node |
471 | + * @param TSqlMapCacheModel $cacheModel |
|
468 | 472 | */ |
469 | 473 | protected function loadFlushInterval($cacheModel, $node) |
470 | 474 | { |
@@ -500,6 +504,7 @@ discard block |
||
500 | 504 | * @param TSqlMapCacheModel cache model |
501 | 505 | * @param SimpleXmlElement parent node. |
502 | 506 | * @param SimpleXmlElement flush node. |
507 | + * @param TSqlMapCacheModel $cacheModel |
|
503 | 508 | */ |
504 | 509 | protected function loadFlushOnCache($cacheModel,$parent,$node) |
505 | 510 | { |
@@ -116,6 +116,7 @@ |
||
116 | 116 | /** |
117 | 117 | * @param object handler to method calls. |
118 | 118 | * @param object the object to by proxied. |
119 | + * @param TLazyLoadList $handler |
|
119 | 120 | */ |
120 | 121 | public function __construct($handler, $object) |
121 | 122 | { |