@@ -170,6 +170,9 @@ |
||
170 | 170 | |
171 | 171 | protected $errorMsg; |
172 | 172 | |
173 | + /** |
|
174 | + * @param string $msg |
|
175 | + */ |
|
173 | 176 | private function displayErrorMsg($msg) { |
174 | 177 | $this->errorMsg = $msg; |
175 | 178 | $this->content->addFile(dirname(__FILE__)."/../../../../views/installError.php", $this); |
@@ -136,8 +136,7 @@ discard block |
||
136 | 136 | * This action generates the TDBM instance, then the DAOs and Beans. |
137 | 137 | * |
138 | 138 | * @Action |
139 | - * @param string $name |
|
140 | - * @param bool $selfedit |
|
139 | + * @param string|boolean $selfedit |
|
141 | 140 | */ |
142 | 141 | public function generate($sourcedirectory, $daonamespace, $beannamespace, $keepSupport = 0, $storeInUtc = 0, $selfedit="false") { |
143 | 142 | $this->selfedit = $selfedit; |
@@ -163,6 +162,9 @@ discard block |
||
163 | 162 | |
164 | 163 | protected $errorMsg; |
165 | 164 | |
165 | + /** |
|
166 | + * @param string $msg |
|
167 | + */ |
|
166 | 168 | private function displayErrorMsg($msg) { |
167 | 169 | $this->errorMsg = $msg; |
168 | 170 | $this->content->addFile(dirname(__FILE__)."/../../../../views/installError.php", $this); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * Default constructor to build the filter. |
49 | 49 | * All parameters are optional and can later be set using the setters. |
50 | 50 | * |
51 | - * @param array<FilterInterface> $filter |
|
51 | + * @param array<FilterInterface> $filters |
|
52 | 52 | */ |
53 | 53 | public function __construct($filters=null) { |
54 | 54 | $this->filters = $filters; |
@@ -98,7 +98,7 @@ |
||
98 | 98 | * |
99 | 99 | * @param string $tableName |
100 | 100 | * @param string $columnName |
101 | - * @param string $value |
|
101 | + * @param string $value1 |
|
102 | 102 | */ |
103 | 103 | public function __construct($tableName=null, $columnName=null, $value1=null, $value2=null) { |
104 | 104 | $this->tableName = $tableName; |
@@ -84,7 +84,6 @@ |
||
84 | 84 | * |
85 | 85 | * @param string $tableName |
86 | 86 | * @param string $columnName |
87 | - * @param string $value |
|
88 | 87 | */ |
89 | 88 | public function __construct($tableName=null, $columnName=null, $order=null) { |
90 | 89 | $this->tableName = $tableName; |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * Default constructor to build the filter. |
58 | 58 | * All parameters are optional and can later be set using the setters. |
59 | 59 | * |
60 | - * @param array<FilterInterface> $filter |
|
60 | + * @param array<FilterInterface> $filters |
|
61 | 61 | */ |
62 | 62 | public function __construct($filters=null) { |
63 | 63 | $this->filters = $filters; |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * false if an explicit call to save() is required. |
146 | 146 | * |
147 | 147 | * @param unknown_type $autoSave |
148 | - * @return boolean |
|
148 | + * @return boolean|null |
|
149 | 149 | */ |
150 | 150 | public function setAutoSaveMode($autoSave) { |
151 | 151 | $this->db_autosave = $autoSave; |
@@ -255,6 +255,9 @@ discard block |
||
255 | 255 | } |
256 | 256 | } |
257 | 257 | |
258 | + /** |
|
259 | + * @param string $var |
|
260 | + */ |
|
258 | 261 | public function __get($var) { |
259 | 262 | $this->_dbLoadIfNotLoaded(); |
260 | 263 | |
@@ -307,6 +310,10 @@ discard block |
||
307 | 310 | return isset($this->db_row[$var]); |
308 | 311 | } |
309 | 312 | |
313 | + /** |
|
314 | + * @param string $var |
|
315 | + * @param string|null $value |
|
316 | + */ |
|
310 | 317 | public function __set($var, $value) { |
311 | 318 | $this->_dbLoadIfNotLoaded(); |
312 | 319 | |
@@ -525,7 +532,7 @@ discard block |
||
525 | 532 | * |
526 | 533 | * @param unknown_type $func_name |
527 | 534 | * @param unknown_type $values |
528 | - * @return unknown |
|
535 | + * @return TDBMObjectArray |
|
529 | 536 | */ |
530 | 537 | public function __call($func_name, $values) { |
531 | 538 |
@@ -84,6 +84,9 @@ discard block |
||
84 | 84 | |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param string $column |
|
89 | + */ |
|
87 | 90 | private function getarray($column) { |
88 | 91 | $arr = array(); |
89 | 92 | foreach ($this as $object) { |
@@ -92,6 +95,9 @@ discard block |
||
92 | 95 | return $arr; |
93 | 96 | } |
94 | 97 | |
98 | + /** |
|
99 | + * @param string $column |
|
100 | + */ |
|
95 | 101 | private function setarray($column, $value) { |
96 | 102 | foreach ($this as $object) { |
97 | 103 | $object->__set($column, $value); |
@@ -962,7 +962,7 @@ discard block |
||
962 | 962 | * @param unknown_type $target_tables |
963 | 963 | * @param unknown_type $path |
964 | 964 | * @param unknown_type $queue |
965 | - * @return unknown |
|
965 | + * @return boolean |
|
966 | 966 | */ |
967 | 967 | private function find_paths_iter(&$target_tables, &$path, &$queue) { |
968 | 968 | // Get table to look at: |
@@ -1184,7 +1184,7 @@ discard block |
||
1184 | 1184 | * @param unknown_type $table_name The name of the table queried |
1185 | 1185 | * @param unknown_type $filter_bag The filter bag (see getObjects for complete description) |
1186 | 1186 | * @param unknown_type $hint_path |
1187 | - * @return integer |
|
1187 | + * @return TDBMObjectArray |
|
1188 | 1188 | */ |
1189 | 1189 | public function getCount($table_name, $filter_bag=null, $hint_path=null) { |
1190 | 1190 | if ($this->dbConnection == null) { |
@@ -1202,7 +1202,7 @@ discard block |
||
1202 | 1202 | * @param integer $from The offset |
1203 | 1203 | * @param integer $limit The maximum number of rows returned |
1204 | 1204 | * @param unknown_type $hint_path Hints to get the path for the query (expert parameter, you should leave it to null). |
1205 | - * @return string The SQL that would be executed. |
|
1205 | + * @return TDBMObjectArray The SQL that would be executed. |
|
1206 | 1206 | */ |
1207 | 1207 | public function explainSQLGetObjects($table_name, $filter_bag=null, $orderby_bag=null, $from=null, $limit=null, $hint_path=null) { |
1208 | 1208 | if ($this->dbConnection == null) { |
@@ -1461,7 +1461,7 @@ discard block |
||
1461 | 1461 | * Takes in input a filter_bag (which can be about anything from a string to an array of TDBMObjects... see above from documentation), |
1462 | 1462 | * and gives back a proper Filter object. |
1463 | 1463 | * |
1464 | - * @param unknown_type $filter_bag |
|
1464 | + * @param unknown_type|null $filter_bag |
|
1465 | 1465 | * @return FilterInterface |
1466 | 1466 | */ |
1467 | 1467 | public function buildFilterFromFilterBag($filter_bag) { |
@@ -1546,7 +1546,7 @@ discard block |
||
1546 | 1546 | * Takes in input an order_bag (which can be about anything from a string to an array of OrderByColumn objects... see above from documentation), |
1547 | 1547 | * and gives back an array of OrderByColumn / OrderBySQLString objects. |
1548 | 1548 | * |
1549 | - * @param unknown_type $orderby_bag |
|
1549 | + * @param unknown_type|null $orderby_bag |
|
1550 | 1550 | * @return array |
1551 | 1551 | */ |
1552 | 1552 | public function buildOrderArrayFromOrderBag($orderby_bag) { |
@@ -1661,6 +1661,8 @@ discard block |
||
1661 | 1661 | * This function returns the HTML to draw a tree of DisplayNode. |
1662 | 1662 | * |
1663 | 1663 | * @param unknown_type $tree |
1664 | + * @param integer $x |
|
1665 | + * @param integer $y |
|
1664 | 1666 | */ |
1665 | 1667 | public function drawTree($tree, $x, $y, &$ret_width=0, &$ret_height=0) { |
1666 | 1668 |