@@ -89,6 +89,7 @@ discard block |
||
| 89 | 89 | * Updates the table with new data. |
| 90 | 90 | * @param array date for update. |
| 91 | 91 | * @param TSqlCriteria update conditions and parameters. |
| 92 | + * @param TSqlCriteria $criteria |
|
| 92 | 93 | * @return integer number of records affected. |
| 93 | 94 | */ |
| 94 | 95 | public function update($data, $criteria) |
@@ -207,6 +208,9 @@ discard block |
||
| 207 | 208 | return $this->onExecuteCommand($command,$command->execute()); |
| 208 | 209 | } |
| 209 | 210 | |
| 211 | + /** |
|
| 212 | + * @param TDbTableInfo $table |
|
| 213 | + */ |
|
| 210 | 214 | public function getIndexKeyCondition($table,$fields,$values) |
| 211 | 215 | { |
| 212 | 216 | if (!count($values)) |
@@ -351,7 +355,7 @@ discard block |
||
| 351 | 355 | * Inserts a new record into the table. Each array key must |
| 352 | 356 | * correspond to a column name in the table unless a null value is permitted. |
| 353 | 357 | * @param array new record data. |
| 354 | - * @return mixed last insert id if one column contains a serial or sequence, |
|
| 358 | + * @return string|boolean last insert id if one column contains a serial or sequence, |
|
| 355 | 359 | * otherwise true if command executes successfully and affected 1 or more rows. |
| 356 | 360 | */ |
| 357 | 361 | public function insert($data) |
@@ -370,7 +374,7 @@ discard block |
||
| 370 | 374 | /** |
| 371 | 375 | * Iterate through all the columns and returns the last insert id of the |
| 372 | 376 | * first column that has a sequence or serial. |
| 373 | - * @return mixed last insert id, null if none is found. |
|
| 377 | + * @return string|null last insert id, null if none is found. |
|
| 374 | 378 | */ |
| 375 | 379 | public function getLastInsertID() |
| 376 | 380 | { |
@@ -381,6 +385,7 @@ discard block |
||
| 381 | 385 | * @param string __call method name |
| 382 | 386 | * @param string criteria conditions |
| 383 | 387 | * @param array method arguments |
| 388 | + * @param string $condition |
|
| 384 | 389 | * @return TActiveRecordCriteria criteria created from the method name and its arguments. |
| 385 | 390 | */ |
| 386 | 391 | public function createCriteriaFromString($method, $condition, $args) |
@@ -434,6 +439,7 @@ discard block |
||
| 434 | 439 | * inspected to obtain the sql query to be executed. |
| 435 | 440 | * @param TDataGatewayCommand originator $sender |
| 436 | 441 | * @param TDataGatewayEventParameter |
| 442 | + * @param TDbCommand $command |
|
| 437 | 443 | */ |
| 438 | 444 | public function onCreateCommand($command, $criteria) |
| 439 | 445 | { |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | /** |
| 191 | - * @return boolean true if the parameter index are string base, false otherwise. |
|
| 191 | + * @return boolean|null true if the parameter index are string base, false otherwise. |
|
| 192 | 192 | */ |
| 193 | 193 | public function getIsNamedParameters() |
| 194 | 194 | { |
@@ -206,6 +206,7 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | /** |
| 208 | 208 | * @param mixed ordering clause. |
| 209 | + * @param string $value |
|
| 209 | 210 | */ |
| 210 | 211 | public function setOrdersBy($value) |
| 211 | 212 | { |
@@ -250,6 +251,7 @@ discard block |
||
| 250 | 251 | |
| 251 | 252 | /** |
| 252 | 253 | * @param int record offset. |
| 254 | + * @param double $value |
|
| 253 | 255 | */ |
| 254 | 256 | public function setOffset($value) |
| 255 | 257 | { |
@@ -132,6 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | /** |
| 134 | 134 | * @param TSubMap add new sub mapping. |
| 135 | + * @param TSubMap $subMap |
|
| 135 | 136 | */ |
| 136 | 137 | public function addSubMap($subMap) |
| 137 | 138 | { |
@@ -140,6 +141,7 @@ discard block |
||
| 140 | 141 | |
| 141 | 142 | /** |
| 142 | 143 | * @param string database value |
| 144 | + * @param string $value |
|
| 143 | 145 | * @return TResultMap result mapping. |
| 144 | 146 | */ |
| 145 | 147 | public function getSubMap($value) |
@@ -151,6 +153,7 @@ discard block |
||
| 151 | 153 | /** |
| 152 | 154 | * Copies the discriminator properties to a new TResultProperty. |
| 153 | 155 | * @param TResultMap result map holding the discriminator. |
| 156 | + * @param TResultMap $resultMap |
|
| 154 | 157 | */ |
| 155 | 158 | public function initMapping($resultMap) |
| 156 | 159 | { |
@@ -55,6 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * @param string a unique identifier for the <parameterMap>. |
| 58 | + * @param string $value |
|
| 58 | 59 | */ |
| 59 | 60 | public function setID($value) |
| 60 | 61 | { |
@@ -62,7 +63,7 @@ discard block |
||
| 62 | 63 | } |
| 63 | 64 | |
| 64 | 65 | /** |
| 65 | - * @return TParameterProperty[] list of properties for the parameter map. |
|
| 66 | + * @return TList list of properties for the parameter map. |
|
| 66 | 67 | */ |
| 67 | 68 | public function getProperties() |
| 68 | 69 | { |
@@ -112,6 +113,7 @@ discard block |
||
| 112 | 113 | /** |
| 113 | 114 | * @param int parameter property index |
| 114 | 115 | * @param TParameterProperty new parameter property. |
| 116 | + * @param integer $index |
|
| 115 | 117 | */ |
| 116 | 118 | public function insertProperty($index, TParameterProperty $property) |
| 117 | 119 | { |
@@ -103,6 +103,7 @@ discard block |
||
| 103 | 103 | /** |
| 104 | 104 | * @param string name of the column in the result set from which the value |
| 105 | 105 | * will be used to populate the property. |
| 106 | + * @param string $value |
|
| 106 | 107 | */ |
| 107 | 108 | public function setColumn($value) |
| 108 | 109 | { |
@@ -121,6 +122,7 @@ discard block |
||
| 121 | 122 | /** |
| 122 | 123 | * @param int index of the column in the ResultSet from which the value will |
| 123 | 124 | * be used to populate the object property |
| 125 | + * @param integer $value |
|
| 124 | 126 | */ |
| 125 | 127 | public function setColumnIndex($value) |
| 126 | 128 | { |
@@ -185,6 +187,7 @@ discard block |
||
| 185 | 187 | |
| 186 | 188 | /** |
| 187 | 189 | * @param string custom type handler class name (may use namespace). |
| 190 | + * @param string $value |
|
| 188 | 191 | */ |
| 189 | 192 | public function setTypeHandler($value) |
| 190 | 193 | { |
@@ -268,6 +268,7 @@ |
||
| 268 | 268 | * @param TSqlMapTypeHandlerRegistry type handler registry |
| 269 | 269 | * @param string result class name. |
| 270 | 270 | * @param array result data. |
| 271 | + * @param string $type |
|
| 271 | 272 | * @return mixed result object. |
| 272 | 273 | */ |
| 273 | 274 | protected function createInstanceOf($registry,$type,$row=null) |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * Create an instance of an object give by the attribute named 'class' in the |
| 24 | 24 | * node and set the properties on the object given by attribute names and values. |
| 25 | 25 | * @param SimpleXmlNode property node |
| 26 | - * @return Object new instance of class with class name given by 'class' attribute value. |
|
| 26 | + * @return TComponent new instance of class with class name given by 'class' attribute value. |
|
| 27 | 27 | */ |
| 28 | 28 | protected function createObjectFromNode($node) |
| 29 | 29 | { |
@@ -44,6 +44,7 @@ discard block |
||
| 44 | 44 | * @param Object object instance |
| 45 | 45 | * @param SimpleXmlNode property node |
| 46 | 46 | * @param array exception property name |
| 47 | + * @param TComponent $obj |
|
| 47 | 48 | */ |
| 48 | 49 | protected function setObjectPropFromNode($obj,$node,$except=array()) |
| 49 | 50 | { |
@@ -65,6 +66,8 @@ discard block |
||
| 65 | 66 | * Gets the filename relative to the basefile. |
| 66 | 67 | * @param string base filename |
| 67 | 68 | * @param string relative filename |
| 69 | + * @param string $basefile |
|
| 70 | + * @param string $resource |
|
| 68 | 71 | * @return string absolute filename. |
| 69 | 72 | */ |
| 70 | 73 | protected function getAbsoluteFilePath($basefile,$resource) |
@@ -98,9 +101,10 @@ discard block |
||
| 98 | 101 | |
| 99 | 102 | /** |
| 100 | 103 | * Get element node by ID value (try for attribute name ID as case insensitive). |
| 101 | - * @param SimpleXmlDocument $document |
|
| 104 | + * @param SimpleXMLElement $document |
|
| 102 | 105 | * @param string tag name. |
| 103 | 106 | * @param string id value. |
| 107 | + * @param string $tag |
|
| 104 | 108 | * @return SimpleXmlElement node if found, null otherwise. |
| 105 | 109 | */ |
| 106 | 110 | protected function getElementByIdValue($document, $tag, $value) |
@@ -146,6 +150,7 @@ discard block |
||
| 146 | 150 | |
| 147 | 151 | /** |
| 148 | 152 | * @param TSqlMapManager manager instance. |
| 153 | + * @param TSqlMapManager $manager |
|
| 149 | 154 | */ |
| 150 | 155 | public function __construct($manager) |
| 151 | 156 | { |
@@ -524,6 +529,7 @@ discard block |
||
| 524 | 529 | * in the sql text. Extracts inline parameter maps. |
| 525 | 530 | * @param TSqlMapStatement mapped statement. |
| 526 | 531 | * @param SimpleXmlElement statement node. |
| 532 | + * @param TSqlMapStatement $statement |
|
| 527 | 533 | */ |
| 528 | 534 | protected function processSqlStatement($statement, $node) |
| 529 | 535 | { |
@@ -547,6 +553,7 @@ discard block |
||
| 547 | 553 | * @param TSqlMapStatement statement object. |
| 548 | 554 | * @param string sql text |
| 549 | 555 | * @param SimpleXmlElement statement node. |
| 556 | + * @param string $sqlStatement |
|
| 550 | 557 | */ |
| 551 | 558 | protected function applyInlineParameterMap($statement, $sqlStatement, $node) |
| 552 | 559 | { |
@@ -644,6 +651,7 @@ discard block |
||
| 644 | 651 | /** |
| 645 | 652 | * Load the selectKey statement from xml mapping. |
| 646 | 653 | * @param SimpleXmlElement selectkey node |
| 654 | + * @param TSqlMapInsert $insert |
|
| 647 | 655 | */ |
| 648 | 656 | protected function loadSelectKeyTag($insert, $node) |
| 649 | 657 | { |
@@ -734,6 +742,7 @@ discard block |
||
| 734 | 742 | * Load the flush interval |
| 735 | 743 | * @param TSqlMapCacheModel cache model |
| 736 | 744 | * @param SimpleXmlElement cache node |
| 745 | + * @param TSqlMapCacheModel $cacheModel |
|
| 737 | 746 | */ |
| 738 | 747 | protected function loadFlushInterval($cacheModel, $node) |
| 739 | 748 | { |
@@ -769,6 +778,7 @@ discard block |
||
| 769 | 778 | * @param TSqlMapCacheModel cache model |
| 770 | 779 | * @param SimpleXmlElement parent node. |
| 771 | 780 | * @param SimpleXmlElement flush node. |
| 781 | + * @param TSqlMapCacheModel $cacheModel |
|
| 772 | 782 | */ |
| 773 | 783 | protected function loadFlushOnCache($cacheModel,$parent,$node) |
| 774 | 784 | { |
@@ -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 | { |
@@ -40,6 +40,7 @@ discard block |
||
| 40 | 40 | * @param int page size |
| 41 | 41 | * @param mixed delegate for each data row retrieved. |
| 42 | 42 | * @param int number of page to fetch on initialization |
| 43 | + * @param integer $pageSize |
|
| 43 | 44 | */ |
| 44 | 45 | public function __construct(IMappedStatement $statement,$parameter, $pageSize, $delegate=null, $page=0) |
| 45 | 46 | { |
@@ -55,6 +56,8 @@ discard block |
||
| 55 | 56 | * @param mixed query parameters |
| 56 | 57 | * @param int page size. |
| 57 | 58 | * @param int number of page. |
| 59 | + * @param IMappedStatement $statement |
|
| 60 | + * @param integer $page |
|
| 58 | 61 | */ |
| 59 | 62 | protected function initialize($statement, $parameter, $pageSize, $page) |
| 60 | 63 | { |