@@ -499,6 +499,10 @@ |
||
| 499 | 499 | @return |
| 500 | 500 | list of data fields ( ready to be used in SQL query ) |
| 501 | 501 | */ |
| 502 | + |
|
| 503 | + /** |
|
| 504 | + * @param DBDataWrapper $db |
|
| 505 | + */ |
|
| 502 | 506 | public function db_names_list($db) |
| 503 | 507 | { |
| 504 | 508 | $out = []; |
@@ -9,19 +9,19 @@ |
||
| 9 | 9 | **/ |
| 10 | 10 | class DataRequestConfig |
| 11 | 11 | { |
| 12 | - private $filters; //!< array of filtering rules |
|
| 13 | - private $relation = false; //!< ID or other element used for linking hierarchy |
|
| 14 | - private $sort_by; //!< sorting field |
|
| 15 | - private $start; //!< start of requested data |
|
| 16 | - private $count; //!< length of requested data |
|
| 12 | + private $filters; //!< array of filtering rules |
|
| 13 | + private $relation = false; //!< ID or other element used for linking hierarchy |
|
| 14 | + private $sort_by; //!< sorting field |
|
| 15 | + private $start; //!< start of requested data |
|
| 16 | + private $count; //!< length of requested data |
|
| 17 | 17 | |
| 18 | 18 | private $order = false; |
| 19 | 19 | private $user; |
| 20 | 20 | private $version; |
| 21 | 21 | |
| 22 | 22 | //for render_sql |
| 23 | - private $source; //!< souce table or another source destination |
|
| 24 | - private $fieldset; //!< set of data, which need to be retrieved from source |
|
| 23 | + private $source; //!< souce table or another source destination |
|
| 24 | + private $fieldset; //!< set of data, which need to be retrieved from source |
|
| 25 | 25 | |
| 26 | 26 | /*! constructor |
| 27 | 27 | |
@@ -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(); |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | **/ |
| 138 | 138 | class AccessMaster |
| 139 | 139 | { |
| 140 | - private $rules,$local; |
|
| 140 | + private $rules, $local; |
|
| 141 | 141 | |
| 142 | 142 | /*! constructor |
| 143 | 143 | |
@@ -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() |
@@ -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 |
@@ -9,19 +9,19 @@ |
||
| 9 | 9 | **/ |
| 10 | 10 | class DataRequestConfig |
| 11 | 11 | { |
| 12 | - private $filters; //!< array of filtering rules |
|
| 13 | - private $relation = false; //!< ID or other element used for linking hierarchy |
|
| 14 | - private $sort_by; //!< sorting field |
|
| 15 | - private $start; //!< start of requested data |
|
| 16 | - private $count; //!< length of requested data |
|
| 12 | + private $filters; //!< array of filtering rules |
|
| 13 | + private $relation = false; //!< ID or other element used for linking hierarchy |
|
| 14 | + private $sort_by; //!< sorting field |
|
| 15 | + private $start; //!< start of requested data |
|
| 16 | + private $count; //!< length of requested data |
|
| 17 | 17 | |
| 18 | 18 | private $order = false; |
| 19 | 19 | private $user; |
| 20 | 20 | private $version; |
| 21 | 21 | |
| 22 | 22 | //for render_sql |
| 23 | - private $source; //!< souce table or another source destination |
|
| 24 | - private $fieldset; //!< set of data, which need to be retrieved from source |
|
| 23 | + private $source; //!< souce table or another source destination |
|
| 24 | + private $fieldset; //!< set of data, which need to be retrieved from source |
|
| 25 | 25 | |
| 26 | 26 | /*! constructor |
| 27 | 27 | |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | **/ |
| 138 | 138 | class AccessMaster |
| 139 | 139 | { |
| 140 | - private $rules,$local; |
|
| 140 | + private $rules, $local; |
|
| 141 | 141 | |
| 142 | 142 | /*! constructor |
| 143 | 143 | |
@@ -229,7 +229,7 @@ |
||
| 229 | 229 | $this->request->set_limit(0, 0); //netralize default reaction on dyn. loading mode |
| 230 | 230 | } |
| 231 | 231 | |
| 232 | - /*! renders self as xml, starting part |
|
| 232 | + /*! renders self as xml, starting part |
|
| 233 | 233 | */ |
| 234 | 234 | public function xml_start() |
| 235 | 235 | { |
@@ -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 | */ |
@@ -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 | */ |