@@ -72,6 +72,10 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public $cdelim; |
74 | 74 | |
75 | + /** |
|
76 | + * @param null|string $id |
|
77 | + * @param string $ds |
|
78 | + */ |
|
75 | 79 | public function __construct($id, $ds, $pageSize = 20, $pageNumber = -1) { |
76 | 80 | global $__DataGridCnt; |
77 | 81 | |
@@ -207,6 +211,9 @@ discard block |
||
207 | 211 | |
208 | 212 | // format column values |
209 | 213 | |
214 | + /** |
|
215 | + * @param integer $n |
|
216 | + */ |
|
210 | 217 | public function RenderRowFnc($n, $row) { |
211 | 218 | if($this->_alt == 0) { |
212 | 219 | $Style = $this->_itemStyle; |
@@ -381,7 +381,7 @@ |
||
381 | 381 | } // end renderFormElement function |
382 | 382 | |
383 | 383 | /** |
384 | - * @param string|array|mysqli_result $v |
|
384 | + * @param string $v |
|
385 | 385 | * @return array |
386 | 386 | */ |
387 | 387 | function ParseIntputOptions($v) { |
@@ -414,6 +414,9 @@ discard block |
||
414 | 414 | } |
415 | 415 | } |
416 | 416 | |
417 | + /** |
|
418 | + * @param string $table |
|
419 | + */ |
|
417 | 420 | public function save($fields, $table, $where = '') |
418 | 421 | { |
419 | 422 | |
@@ -444,6 +447,7 @@ discard block |
||
444 | 447 | /** |
445 | 448 | * @name: freeResult |
446 | 449 | * |
450 | + * @param mysqli_result $rs |
|
447 | 451 | */ |
448 | 452 | public function freeResult($rs) |
449 | 453 | { |
@@ -554,6 +558,7 @@ discard block |
||
554 | 558 | * @name: getColumn |
555 | 559 | * @desc: returns an array of the values found on colun $name |
556 | 560 | * @param: $dsq - dataset or query string |
561 | + * @param string $name |
|
557 | 562 | */ |
558 | 563 | public function getColumn($name, $dsq) |
559 | 564 | { |
@@ -720,6 +725,9 @@ discard block |
||
720 | 725 | return $result; |
721 | 726 | } |
722 | 727 | |
728 | + /** |
|
729 | + * @param string $table_name |
|
730 | + */ |
|
723 | 731 | public function optimize($table_name) |
724 | 732 | { |
725 | 733 | $rs = $this->query("OPTIMIZE TABLE {$table_name}"); |
@@ -730,6 +738,9 @@ discard block |
||
730 | 738 | return $rs; |
731 | 739 | } |
732 | 740 | |
741 | + /** |
|
742 | + * @param string $table_name |
|
743 | + */ |
|
733 | 744 | public function truncate($table_name) |
734 | 745 | { |
735 | 746 | $rs = $this->query("TRUNCATE {$table_name}"); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | /** |
95 | 95 | * @param string $mode |
96 | 96 | * @param string $modifiers |
97 | - * @return bool|string |
|
97 | + * @return false|string |
|
98 | 98 | */ |
99 | 99 | public function _getDelim($mode,$modifiers) { |
100 | 100 | $c = substr($modifiers,0,1); |
@@ -131,6 +131,14 @@ discard block |
||
131 | 131 | return $opt; |
132 | 132 | } |
133 | 133 | } |
134 | + |
|
135 | + /** |
|
136 | + * @param string $mode |
|
137 | + * @param false|string $delim |
|
138 | + * @param string $modifiers |
|
139 | + * |
|
140 | + * @return string |
|
141 | + */ |
|
134 | 142 | public function _getRemainModifiers($mode,$delim,$modifiers) { |
135 | 143 | if($delim) { |
136 | 144 | if($mode=='(') |
@@ -158,6 +166,9 @@ discard block |
||
158 | 166 | return substr($string,strpos($string, $delim)+$len); |
159 | 167 | } |
160 | 168 | |
169 | + /** |
|
170 | + * @param string $modifiers |
|
171 | + */ |
|
161 | 172 | public function splitEachModifiers($modifiers) { |
162 | 173 | $modx = evolutionCMS(); |
163 | 174 | |
@@ -227,6 +238,10 @@ discard block |
||
227 | 238 | return $result; |
228 | 239 | } |
229 | 240 | |
241 | + /** |
|
242 | + * @param string $key |
|
243 | + * @param string $value |
|
244 | + */ |
|
230 | 245 | public function parsePhx($key,$value,$modifiers) |
231 | 246 | { |
232 | 247 | $modx = evolutionCMS(); |
@@ -293,6 +308,10 @@ discard block |
||
293 | 308 | else return true; |
294 | 309 | } |
295 | 310 | |
311 | + /** |
|
312 | + * @param string $cmd |
|
313 | + * @param string $opt |
|
314 | + */ |
|
296 | 315 | public function getValueFromPreset($key, $value, $cmd, $opt) |
297 | 316 | { |
298 | 317 | $modx = evolutionCMS(); |
@@ -978,6 +997,9 @@ discard block |
||
978 | 997 | return $value; |
979 | 998 | } |
980 | 999 | |
1000 | + /** |
|
1001 | + * @param string $cmd |
|
1002 | + */ |
|
981 | 1003 | public function includeMdfFile($cmd) { |
982 | 1004 | $modx = evolutionCMS(); |
983 | 1005 | $key = $this->key; |
@@ -1133,6 +1155,10 @@ discard block |
||
1133 | 1155 | } |
1134 | 1156 | |
1135 | 1157 | // Sets a placeholder variable which can only be access by Modifiers |
1158 | + |
|
1159 | + /** |
|
1160 | + * @param string $value |
|
1161 | + */ |
|
1136 | 1162 | public function setModifiersVariable($key, $value) { |
1137 | 1163 | if ($key != 'phx' && $key != 'dummy') $this->placeholders[$key] = $value; |
1138 | 1164 | } |