@@ -21,6 +21,9 @@ discard block |
||
| 21 | 21 | private $end; |
| 22 | 22 | private $type; |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param string $start |
|
| 26 | + */ |
|
| 24 | 27 | public function __construct($start, $end = '') |
| 25 | 28 | { |
| 26 | 29 | $this->start = $start; |
@@ -39,6 +42,9 @@ discard block |
||
| 39 | 42 | $this->end = ''; |
| 40 | 43 | } |
| 41 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $add |
|
| 47 | + */ |
|
| 42 | 48 | public function set_type($add) |
| 43 | 49 | { |
| 44 | 50 | $this->type = $add; |
@@ -455,6 +461,9 @@ discard block |
||
| 455 | 461 | |
| 456 | 462 | protected $attributes; |
| 457 | 463 | |
| 464 | + /** |
|
| 465 | + * @param string $name |
|
| 466 | + */ |
|
| 458 | 467 | public function add_top_attribute($name, $string) |
| 459 | 468 | { |
| 460 | 469 | $this->attributes[$name] = $string; |
@@ -1019,6 +1028,9 @@ discard block |
||
| 1019 | 1028 | $this->request->set_filters([]); |
| 1020 | 1029 | } |
| 1021 | 1030 | |
| 1031 | + /** |
|
| 1032 | + * @param FilterInterface $wrap |
|
| 1033 | + */ |
|
| 1022 | 1034 | protected function apply_filters($wrap) |
| 1023 | 1035 | { |
| 1024 | 1036 | for ($i = 0; $i < count($this->filters); $i++) { |
@@ -1032,6 +1044,9 @@ discard block |
||
| 1032 | 1044 | $this->sorts[] = ['name' => $name, 'direction' => $direction]; |
| 1033 | 1045 | } |
| 1034 | 1046 | |
| 1047 | + /** |
|
| 1048 | + * @param SortInterface $wrap |
|
| 1049 | + */ |
|
| 1035 | 1050 | protected function apply_sorts($wrap) |
| 1036 | 1051 | { |
| 1037 | 1052 | for ($i = 0; $i < count($this->sorts); $i++) { |
@@ -355,11 +355,11 @@ |
||
| 355 | 355 | private $updating = false; //!< flag of update mode ( response for data-update ) |
| 356 | 356 | private $db; //!< db connection resource |
| 357 | 357 | protected $dload; //!< flag of dyn. loading mode |
| 358 | - public $access; //!< AccessMaster instance |
|
| 358 | + public $access; //!< AccessMaster instance |
|
| 359 | 359 | protected $data_separator = "\n"; |
| 360 | 360 | |
| 361 | - public $sql; //DataWrapper instance |
|
| 362 | - public $event; //EventMaster instance |
|
| 361 | + public $sql; //DataWrapper instance |
|
| 362 | + public $event; //EventMaster instance |
|
| 363 | 363 | public $limit = false; |
| 364 | 364 | |
| 365 | 365 | private $id_seed = 0; //!< default value, used to generate auto-IDs |
@@ -67,6 +67,10 @@ |
||
| 67 | 67 | self::$eventsStatic[$name][] = $method; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param string $name |
|
| 72 | + * @param Connector $method |
|
| 73 | + */ |
|
| 70 | 74 | public static function trigger_static($name, $method) |
| 71 | 75 | { |
| 72 | 76 | $arg_list = func_get_args(); |
@@ -190,6 +190,9 @@ |
||
| 190 | 190 | die(); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | + /** |
|
| 194 | + * @param boolean $edit |
|
| 195 | + */ |
|
| 193 | 196 | public static function checkCSRF($edit) |
| 194 | 197 | { |
| 195 | 198 | if (self::$security_key) { |
@@ -121,19 +121,19 @@ |
||
| 121 | 121 | if (class_exists('tidy')) { |
| 122 | 122 | $tidy = new tidy(); |
| 123 | 123 | $tidyOptions = ['output-xhtml' => true, |
| 124 | - 'show-body-only' => true, |
|
| 125 | - 'clean' => true, |
|
| 126 | - 'wrap' => '350', |
|
| 127 | - 'indent' => true, |
|
| 128 | - 'indent-spaces' => 1, |
|
| 129 | - 'ascii-chars' => false, |
|
| 130 | - 'wrap-attributes' => false, |
|
| 131 | - 'alt-text' => '', |
|
| 132 | - 'doctype' => 'loose', |
|
| 133 | - 'numeric-entities' => true, |
|
| 134 | - 'drop-proprietary-attributes' => true, |
|
| 135 | - 'enclose-text' => false, |
|
| 136 | - 'enclose-block-text' => false, |
|
| 124 | + 'show-body-only' => true, |
|
| 125 | + 'clean' => true, |
|
| 126 | + 'wrap' => '350', |
|
| 127 | + 'indent' => true, |
|
| 128 | + 'indent-spaces' => 1, |
|
| 129 | + 'ascii-chars' => false, |
|
| 130 | + 'wrap-attributes' => false, |
|
| 131 | + 'alt-text' => '', |
|
| 132 | + 'doctype' => 'loose', |
|
| 133 | + 'numeric-entities' => true, |
|
| 134 | + 'drop-proprietary-attributes' => true, |
|
| 135 | + 'enclose-text' => false, |
|
| 136 | + 'enclose-block-text' => false, |
|
| 137 | 137 | |
| 138 | 138 | ]; |
| 139 | 139 | $tidy->parseString($string, $tidyOptions, 'utf8'); |
@@ -177,7 +177,7 @@ |
||
| 177 | 177 | |
| 178 | 178 | return self::$filterClass->basic($value); |
| 179 | 179 | } |
| 180 | - throw new Error('Invalid security mode:' + $mode); |
|
| 180 | + throw new Error('Invalid security mode:' +$mode); |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | public static function CSRF_detected() |
@@ -219,7 +219,7 @@ |
||
| 219 | 219 | return $output; |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | - /*! renders self as xml, starting part |
|
| 222 | + /*! renders self as xml, starting part |
|
| 223 | 223 | */ |
| 224 | 224 | public function xml_start() |
| 225 | 225 | { |
@@ -245,10 +245,10 @@ |
||
| 245 | 245 | private $editing = false; //!< flag of edit mode ( response for dataprocessor ) |
| 246 | 246 | private $db; //!< db connection resource |
| 247 | 247 | protected $dload; //!< flag of dyn. loading mode |
| 248 | - public $access; //!< AccessMaster instance |
|
| 248 | + public $access; //!< AccessMaster instance |
|
| 249 | 249 | |
| 250 | - public $sql; //DataWrapper instance |
|
| 251 | - public $event; //EventMaster instance |
|
| 250 | + public $sql; //DataWrapper instance |
|
| 251 | + public $event; //EventMaster instance |
|
| 252 | 252 | |
| 253 | 253 | private $id_seed = 0; //!< default value, used to generate auto-IDs |
| 254 | 254 | |
@@ -6,15 +6,15 @@ |
||
| 6 | 6 | **/ |
| 7 | 7 | class DataRequestConfig |
| 8 | 8 | { |
| 9 | - private $filters; //!< array of filtering rules |
|
| 10 | - private $relation = false; //!< ID or other element used for linking hierarchy |
|
| 11 | - private $sort_by; //!< sorting field |
|
| 12 | - private $start; //!< start of requested data |
|
| 13 | - private $count; //!< length of requested data |
|
| 9 | + private $filters; //!< array of filtering rules |
|
| 10 | + private $relation = false; //!< ID or other element used for linking hierarchy |
|
| 11 | + private $sort_by; //!< sorting field |
|
| 12 | + private $start; //!< start of requested data |
|
| 13 | + private $count; //!< length of requested data |
|
| 14 | 14 | |
| 15 | 15 | //for render_sql |
| 16 | - private $source; //!< souce table or another source destination |
|
| 17 | - private $fieldset; //!< set of data, which need to be retrieved from source |
|
| 16 | + private $source; //!< souce table or another source destination |
|
| 17 | + private $fieldset; //!< set of data, which need to be retrieved from source |
|
| 18 | 18 | |
| 19 | 19 | /*! constructor |
| 20 | 20 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | //print one level of the tree, based on parent_id |
| 61 | 61 | function getDataFromDB($name_mask, $code_mask, $sort_by, $sort_dir) |
| 62 | 62 | { |
| 63 | - global $posStart,$count,$nm_mask,$cd_mask; |
|
| 63 | + global $posStart, $count, $nm_mask, $cd_mask; |
|
| 64 | 64 | $sql = 'SELECT * FROM grid50000 Where 0=0'; |
| 65 | 65 | if ($nm_mask != '') { |
| 66 | 66 | $sql .= " and item_nm like '$nm_mask%'"; |
@@ -47,8 +47,8 @@ |
||
| 47 | 47 | if (!isset($_GET['direction']) || $_GET['direction'] == 'asc') { |
| 48 | 48 | $_GET['direction'] = 'ASC'; |
| 49 | 49 | } else { |
| 50 | - $_GET['direction'] = 'DESC'; |
|
| 51 | - } |
|
| 50 | + $_GET['direction'] = 'DESC'; |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | 53 | $fields = ['item_nm', '', 'item_cd']; |
| 54 | 54 | getDataFromDB('', '', $fields[$_GET['orderBy']], $_GET['direction']); |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | $this->status = $status; |
| 441 | 441 | } |
| 442 | 442 | |
| 443 | - /*! set id |
|
| 443 | + /*! set id |
|
| 444 | 444 | @param id |
| 445 | 445 | id value |
| 446 | 446 | */ |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | LogMaster::log('Change id: '.$id); |
| 451 | 451 | } |
| 452 | 452 | |
| 453 | - /*! set id |
|
| 453 | + /*! set id |
|
| 454 | 454 | @param id |
| 455 | 455 | id value |
| 456 | 456 | */ |
@@ -355,11 +355,11 @@ |
||
| 355 | 355 | private $updating = false; //!< flag of update mode ( response for data-update ) |
| 356 | 356 | private $db; //!< db connection resource |
| 357 | 357 | protected $dload; //!< flag of dyn. loading mode |
| 358 | - public $access; //!< AccessMaster instance |
|
| 358 | + public $access; //!< AccessMaster instance |
|
| 359 | 359 | protected $data_separator = "\n"; |
| 360 | 360 | |
| 361 | - public $sql; //DataWrapper instance |
|
| 362 | - public $event; //EventMaster instance |
|
| 361 | + public $sql; //DataWrapper instance |
|
| 362 | + public $event; //EventMaster instance |
|
| 363 | 363 | public $limit = false; |
| 364 | 364 | |
| 365 | 365 | private $id_seed = 0; //!< default value, used to generate auto-IDs |
@@ -21,6 +21,9 @@ discard block |
||
| 21 | 21 | private $end; |
| 22 | 22 | private $type; |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param string $start |
|
| 26 | + */ |
|
| 24 | 27 | public function __construct($start, $end = '') |
| 25 | 28 | { |
| 26 | 29 | $this->start = $start; |
@@ -39,6 +42,9 @@ discard block |
||
| 39 | 42 | $this->end = ''; |
| 40 | 43 | } |
| 41 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $add |
|
| 47 | + */ |
|
| 42 | 48 | public function set_type($add) |
| 43 | 49 | { |
| 44 | 50 | $this->type = $add; |
@@ -455,6 +461,9 @@ discard block |
||
| 455 | 461 | |
| 456 | 462 | protected $attributes; |
| 457 | 463 | |
| 464 | + /** |
|
| 465 | + * @param string $name |
|
| 466 | + */ |
|
| 458 | 467 | public function add_top_attribute($name, $string) |
| 459 | 468 | { |
| 460 | 469 | $this->attributes[$name] = $string; |
@@ -1019,6 +1028,9 @@ discard block |
||
| 1019 | 1028 | $this->request->set_filters([]); |
| 1020 | 1029 | } |
| 1021 | 1030 | |
| 1031 | + /** |
|
| 1032 | + * @param FilterInterface $wrap |
|
| 1033 | + */ |
|
| 1022 | 1034 | protected function apply_filters($wrap) |
| 1023 | 1035 | { |
| 1024 | 1036 | for ($i = 0; $i < count($this->filters); $i++) { |
@@ -1032,6 +1044,9 @@ discard block |
||
| 1032 | 1044 | $this->sorts[] = ['name' => $name, 'direction' => $direction]; |
| 1033 | 1045 | } |
| 1034 | 1046 | |
| 1047 | + /** |
|
| 1048 | + * @param SortInterface $wrap |
|
| 1049 | + */ |
|
| 1035 | 1050 | protected function apply_sorts($wrap) |
| 1036 | 1051 | { |
| 1037 | 1052 | for ($i = 0; $i < count($this->sorts); $i++) { |