@@ -12,24 +12,24 @@ |
||
| 12 | 12 | |
| 13 | 13 | foreach ($dbconfig as $key => $value) |
| 14 | 14 | { |
| 15 | - switch ($key) |
|
| 16 | - { |
|
| 17 | - case 'dbhost': |
|
| 18 | - $db->setDbhost($value); |
|
| 19 | - break; |
|
| 20 | - case 'dbuser': |
|
| 21 | - $db->setDbuser($value); |
|
| 22 | - break; |
|
| 23 | - case 'dbpass': |
|
| 24 | - $db->setDbpass($value); |
|
| 25 | - break; |
|
| 26 | - case 'dbname': |
|
| 27 | - $db->setDbname($value); |
|
| 28 | - break; |
|
| 29 | - case 'dbchar': |
|
| 30 | - $db->setDbChar($value); |
|
| 31 | - break; |
|
| 32 | - } |
|
| 15 | + switch ($key) |
|
| 16 | + { |
|
| 17 | + case 'dbhost': |
|
| 18 | + $db->setDbhost($value); |
|
| 19 | + break; |
|
| 20 | + case 'dbuser': |
|
| 21 | + $db->setDbuser($value); |
|
| 22 | + break; |
|
| 23 | + case 'dbpass': |
|
| 24 | + $db->setDbpass($value); |
|
| 25 | + break; |
|
| 26 | + case 'dbname': |
|
| 27 | + $db->setDbname($value); |
|
| 28 | + break; |
|
| 29 | + case 'dbchar': |
|
| 30 | + $db->setDbChar($value); |
|
| 31 | + break; |
|
| 32 | + } |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | return $db->reconnect(); |
@@ -3,11 +3,11 @@ |
||
| 3 | 3 | return [ |
| 4 | 4 | 'router' => [ |
| 5 | 5 | 'routes' => [ |
| 6 | - 'Connections' => [ |
|
| 7 | - 'module' => '', |
|
| 8 | - 'controller' => '', |
|
| 9 | - 'view' => 'index' |
|
| 10 | - ] |
|
| 6 | + 'Connections' => [ |
|
| 7 | + 'module' => '', |
|
| 8 | + 'controller' => '', |
|
| 9 | + 'view' => 'index' |
|
| 10 | + ] |
|
| 11 | 11 | ], |
| 12 | 12 | ], |
| 13 | 13 | 'view_manager' => [ |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | { |
| 82 | 82 | $new = array(); |
| 83 | 83 | |
| 84 | - foreach($obj as $key => $val) |
|
| 84 | + foreach ($obj as $key => $val) |
|
| 85 | 85 | { |
| 86 | 86 | $new[$key] = $this->object_to_array($val); |
| 87 | 87 | } |
@@ -26,8 +26,9 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | foreach ($files as $file) |
| 28 | 28 | { |
| 29 | - if (!in_array($file, ['.', '..'])) |
|
| 30 | - $_files[] = $file; |
|
| 29 | + if (!in_array($file, ['.', '..'])) { |
|
| 30 | + $_files[] = $file; |
|
| 31 | + } |
|
| 31 | 32 | } |
| 32 | 33 | |
| 33 | 34 | $_folders[$folder] = $_files; |
@@ -74,8 +75,9 @@ discard block |
||
| 74 | 75 | |
| 75 | 76 | private function object_to_array($obj) |
| 76 | 77 | { |
| 77 | - if (is_object($obj)) |
|
| 78 | - $obj = (array) $obj; |
|
| 78 | + if (is_object($obj)) { |
|
| 79 | + $obj = (array) $obj; |
|
| 80 | + } |
|
| 79 | 81 | |
| 80 | 82 | if (is_array($obj)) |
| 81 | 83 | { |
@@ -85,9 +87,9 @@ discard block |
||
| 85 | 87 | { |
| 86 | 88 | $new[$key] = $this->object_to_array($val); |
| 87 | 89 | } |
| 90 | + } else { |
|
| 91 | + $new = $obj; |
|
| 88 | 92 | } |
| 89 | - else |
|
| 90 | - $new = $obj; |
|
| 91 | 93 | |
| 92 | 94 | return $new; |
| 93 | 95 | } |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | $data = array(); |
| 157 | 157 | |
| 158 | 158 | # environment settings |
| 159 | - $this->setTerminal(true); # set terminal |
|
| 159 | + $this->setTerminal(true); # set terminal |
|
| 160 | 160 | |
| 161 | 161 | # TRY-CATCH-BLOCK |
| 162 | 162 | try { |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $http = new Http(); |
| 168 | 168 | $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED); |
| 169 | 169 | |
| 170 | - die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!'); |
|
| 170 | + die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!'); |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | $data["connections"] = $this->getUserConnectionEntity()->select([ |
@@ -227,8 +227,8 @@ discard block |
||
| 227 | 227 | $data = array(); |
| 228 | 228 | |
| 229 | 229 | # environment settings |
| 230 | - $post = $this->getPost(); # catch $_POST |
|
| 231 | - $this->setTerminal(true); # set terminal |
|
| 230 | + $post = $this->getPost(); # catch $_POST |
|
| 231 | + $this->setTerminal(true); # set terminal |
|
| 232 | 232 | |
| 233 | 233 | # TRY-CATCH-BLOCK |
| 234 | 234 | try { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | $http = new Http(); |
| 240 | 240 | $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED); |
| 241 | 241 | |
| 242 | - die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!'); |
|
| 242 | + die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!'); |
|
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | # STANDARD VALIDATIONS [check needed arguments] |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | $http = new Http(); |
| 252 | 252 | $http->writeStatus($http::HTTP_BAD_REQUEST); |
| 253 | 253 | |
| 254 | - die('Error ' . $http::HTTP_BAD_REQUEST .' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!'); |
|
| 254 | + die('Error ' . $http::HTTP_BAD_REQUEST . ' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!'); |
|
| 255 | 255 | } |
| 256 | 256 | }); |
| 257 | 257 | |
@@ -359,8 +359,8 @@ discard block |
||
| 359 | 359 | $data = array(); |
| 360 | 360 | |
| 361 | 361 | # environment settings |
| 362 | - $post = $this->getPost(); # catch $_POST |
|
| 363 | - $this->setTerminal(true); # set terminal |
|
| 362 | + $post = $this->getPost(); # catch $_POST |
|
| 363 | + $this->setTerminal(true); # set terminal |
|
| 364 | 364 | |
| 365 | 365 | # TRY-CATCH-BLOCK |
| 366 | 366 | try { |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | $http = new Http(); |
| 400 | 400 | $http->writeStatus($http::HTTP_BAD_REQUEST); |
| 401 | 401 | |
| 402 | - die('Error ' . $http::HTTP_BAD_REQUEST .' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!'); |
|
| 402 | + die('Error ' . $http::HTTP_BAD_REQUEST . ' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!'); |
|
| 403 | 403 | } |
| 404 | 404 | }); |
| 405 | 405 | |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | $http = new Http(); |
| 493 | 493 | $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED); |
| 494 | 494 | |
| 495 | - die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!'); |
|
| 495 | + die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!'); |
|
| 496 | 496 | } |
| 497 | 497 | } |
| 498 | 498 | catch (\Drone\Exception\Exception $e) |
@@ -544,9 +544,9 @@ discard block |
||
| 544 | 544 | $data = array(); |
| 545 | 545 | |
| 546 | 546 | # environment settings |
| 547 | - $post = $this->getPost(); # catch $_POST |
|
| 548 | - $get = $_GET; # catch $_GET |
|
| 549 | - $this->setTerminal(true); # set terminal |
|
| 547 | + $post = $this->getPost(); # catch $_POST |
|
| 548 | + $get = $_GET; # catch $_GET |
|
| 549 | + $this->setTerminal(true); # set terminal |
|
| 550 | 550 | |
| 551 | 551 | # TRY-CATCH-BLOCK |
| 552 | 552 | try { |
@@ -562,7 +562,7 @@ discard block |
||
| 562 | 562 | $http = new Http(); |
| 563 | 563 | $http->writeStatus($http::HTTP_BAD_REQUEST); |
| 564 | 564 | |
| 565 | - die('Error ' . $http::HTTP_BAD_REQUEST .' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!'); |
|
| 565 | + die('Error ' . $http::HTTP_BAD_REQUEST . ' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!'); |
|
| 566 | 566 | } |
| 567 | 567 | }); |
| 568 | 568 | |
@@ -624,7 +624,7 @@ discard block |
||
| 624 | 624 | $http = new Http(); |
| 625 | 625 | $http->writeStatus($http::HTTP_BAD_REQUEST); |
| 626 | 626 | |
| 627 | - die('Error ' . $http::HTTP_BAD_REQUEST .' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!'); |
|
| 627 | + die('Error ' . $http::HTTP_BAD_REQUEST . ' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!'); |
|
| 628 | 628 | } |
| 629 | 629 | }); |
| 630 | 630 | |
@@ -729,7 +729,7 @@ discard block |
||
| 729 | 729 | $http = new Http(); |
| 730 | 730 | $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED); |
| 731 | 731 | |
| 732 | - die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!'); |
|
| 732 | + die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!'); |
|
| 733 | 733 | } |
| 734 | 734 | } |
| 735 | 735 | catch (\Drone\Exception\Exception $e) |
@@ -776,7 +776,7 @@ discard block |
||
| 776 | 776 | foreach ($errors as $errno => $error) |
| 777 | 777 | { |
| 778 | 778 | $errorInformation .= |
| 779 | - "<strong style='color: #a94442'>". |
|
| 779 | + "<strong style='color: #a94442'>" . |
|
| 780 | 780 | $method |
| 781 | 781 | . "</strong>: <span style='color: #e24f4c'>{$error}</span> \n<br />"; |
| 782 | 782 | } |
@@ -85,8 +85,9 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | private function getUsersEntity() |
| 87 | 87 | { |
| 88 | - if (!is_null($this->usersEntity)) |
|
| 89 | - return $this->usersEntity; |
|
| 88 | + if (!is_null($this->usersEntity)) { |
|
| 89 | + return $this->usersEntity; |
|
| 90 | + } |
|
| 90 | 91 | |
| 91 | 92 | $this->usersEntity = new EntityAdapter(new TableGateway(new UserModel())); |
| 92 | 93 | |
@@ -98,8 +99,9 @@ discard block |
||
| 98 | 99 | */ |
| 99 | 100 | private function getConnectionTypesEntity() |
| 100 | 101 | { |
| 101 | - if (!is_null($this->connectionTypesEntity)) |
|
| 102 | - return $this->connectionTypesEntity; |
|
| 102 | + if (!is_null($this->connectionTypesEntity)) { |
|
| 103 | + return $this->connectionTypesEntity; |
|
| 104 | + } |
|
| 103 | 105 | |
| 104 | 106 | $this->connectionTypesEntity = new EntityAdapter(new TableGateway(new ConnectionType())); |
| 105 | 107 | |
@@ -111,8 +113,9 @@ discard block |
||
| 111 | 113 | */ |
| 112 | 114 | private function getConnectionFieldsEntity() |
| 113 | 115 | { |
| 114 | - if (!is_null($this->connectionFieldsEntity)) |
|
| 115 | - return $this->connectionFieldsEntity; |
|
| 116 | + if (!is_null($this->connectionFieldsEntity)) { |
|
| 117 | + return $this->connectionFieldsEntity; |
|
| 118 | + } |
|
| 116 | 119 | |
| 117 | 120 | $this->connectionFieldsEntity = new EntityAdapter(new TableGateway(new ConnectionTypeField())); |
| 118 | 121 | |
@@ -124,8 +127,9 @@ discard block |
||
| 124 | 127 | */ |
| 125 | 128 | private function getUserConnectionEntity() |
| 126 | 129 | { |
| 127 | - if (!is_null($this->userConnectionEntity)) |
|
| 128 | - return $this->userConnectionEntity; |
|
| 130 | + if (!is_null($this->userConnectionEntity)) { |
|
| 131 | + return $this->userConnectionEntity; |
|
| 132 | + } |
|
| 129 | 133 | |
| 130 | 134 | $this->userConnectionEntity = new EntityAdapter(new UserConnectionsTable(new UserConnection())); |
| 131 | 135 | |
@@ -137,8 +141,9 @@ discard block |
||
| 137 | 141 | */ |
| 138 | 142 | private function getUserConnectionDetailsEntity() |
| 139 | 143 | { |
| 140 | - if (!is_null($this->userConnectionDetailsEntity)) |
|
| 141 | - return $this->userConnectionDetailsEntity; |
|
| 144 | + if (!is_null($this->userConnectionDetailsEntity)) { |
|
| 145 | + return $this->userConnectionDetailsEntity; |
|
| 146 | + } |
|
| 142 | 147 | |
| 143 | 148 | $this->userConnectionDetailsEntity = new EntityAdapter(new TableGateway(new UserConnectionDetails())); |
| 144 | 149 | |
@@ -177,14 +182,12 @@ discard block |
||
| 177 | 182 | |
| 178 | 183 | # SUCCESS-MESSAGE |
| 179 | 184 | $data["process"] = "success"; |
| 180 | - } |
|
| 181 | - catch (\Drone\Exception\Exception $e) |
|
| 185 | + } catch (\Drone\Exception\Exception $e) |
|
| 182 | 186 | { |
| 183 | 187 | # ERROR-MESSAGE |
| 184 | 188 | $data["process"] = "warning"; |
| 185 | 189 | $data["message"] = $e->getMessage(); |
| 186 | - } |
|
| 187 | - catch (\Exception $e) |
|
| 190 | + } catch (\Exception $e) |
|
| 188 | 191 | { |
| 189 | 192 | $file = str_replace('\\', '', __CLASS__); |
| 190 | 193 | $storage = new \Drone\Exception\Storage("cache/$file.json"); |
@@ -289,13 +292,15 @@ discard block |
||
| 289 | 292 | "USER_CONN_ID" => $post["id"] |
| 290 | 293 | ]); |
| 291 | 294 | |
| 292 | - if (!count($connection)) |
|
| 293 | - throw new \Exception("The Connection does not exists"); |
|
| 295 | + if (!count($connection)) { |
|
| 296 | + throw new \Exception("The Connection does not exists"); |
|
| 297 | + } |
|
| 294 | 298 | |
| 295 | 299 | $connection = array_shift($connection); |
| 296 | 300 | |
| 297 | - if ($connection->STATE == 'I') |
|
| 298 | - throw new \Drone\Exception\Exception("This connection was deleted", 300); |
|
| 301 | + if ($connection->STATE == 'I') { |
|
| 302 | + throw new \Drone\Exception\Exception("This connection was deleted", 300); |
|
| 303 | + } |
|
| 299 | 304 | |
| 300 | 305 | $connection->exchangeArray([ |
| 301 | 306 | "STATE" => 'I' |
@@ -309,14 +314,12 @@ discard block |
||
| 309 | 314 | |
| 310 | 315 | # SUCCESS-MESSAGE |
| 311 | 316 | $data["process"] = "success"; |
| 312 | - } |
|
| 313 | - catch (\Drone\Exception\Exception $e) |
|
| 317 | + } catch (\Drone\Exception\Exception $e) |
|
| 314 | 318 | { |
| 315 | 319 | # ERROR-MESSAGE |
| 316 | 320 | $data["process"] = "warning"; |
| 317 | 321 | $data["message"] = $e->getMessage(); |
| 318 | - } |
|
| 319 | - catch (\Exception $e) |
|
| 322 | + } catch (\Exception $e) |
|
| 320 | 323 | { |
| 321 | 324 | $file = str_replace('\\', '', __CLASS__); |
| 322 | 325 | $storage = new \Drone\Exception\Storage("cache/$file.json"); |
@@ -387,8 +390,7 @@ discard block |
||
| 387 | 390 | |
| 388 | 391 | # SUCCESS-MESSAGE |
| 389 | 392 | $data["process"] = "register-form"; |
| 390 | - } |
|
| 391 | - else if ($this->isPost()) |
|
| 393 | + } else if ($this->isPost()) |
|
| 392 | 394 | { |
| 393 | 395 | # STANDARD VALIDATIONS [check needed arguments] |
| 394 | 396 | $needles = ['field', 'type', 'aliasname']; |
@@ -486,22 +488,19 @@ discard block |
||
| 486 | 488 | |
| 487 | 489 | # SUCCESS-MESSAGE |
| 488 | 490 | $data["process"] = "process-response"; |
| 489 | - } |
|
| 490 | - else |
|
| 491 | + } else |
|
| 491 | 492 | { |
| 492 | 493 | $http = new Http(); |
| 493 | 494 | $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED); |
| 494 | 495 | |
| 495 | 496 | die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!'); |
| 496 | 497 | } |
| 497 | - } |
|
| 498 | - catch (\Drone\Exception\Exception $e) |
|
| 498 | + } catch (\Drone\Exception\Exception $e) |
|
| 499 | 499 | { |
| 500 | 500 | # ERROR-MESSAGE |
| 501 | 501 | $data["process"] = "warning"; |
| 502 | 502 | $data["message"] = $e->getMessage(); |
| 503 | - } |
|
| 504 | - catch (\Exception $e) |
|
| 503 | + } catch (\Exception $e) |
|
| 505 | 504 | { |
| 506 | 505 | $file = str_replace('\\', '', __CLASS__); |
| 507 | 506 | $storage = new \Drone\Exception\Storage("cache/$file.json"); |
@@ -588,13 +587,15 @@ discard block |
||
| 588 | 587 | "USER_CONN_ID" => $get["id"] |
| 589 | 588 | ]); |
| 590 | 589 | |
| 591 | - if (!count($connection)) |
|
| 592 | - throw new \Exception("The Connection does not exists"); |
|
| 590 | + if (!count($connection)) { |
|
| 591 | + throw new \Exception("The Connection does not exists"); |
|
| 592 | + } |
|
| 593 | 593 | |
| 594 | 594 | $connection = array_shift($connection); |
| 595 | 595 | |
| 596 | - if ($connection->STATE == 'I') |
|
| 597 | - throw new \Drone\Exception\Exception("This connection was deleted", 300); |
|
| 596 | + if ($connection->STATE == 'I') { |
|
| 597 | + throw new \Drone\Exception\Exception("This connection was deleted", 300); |
|
| 598 | + } |
|
| 598 | 599 | |
| 599 | 600 | $connection_details = $this->getUserConnectionDetailsEntity()->select([ |
| 600 | 601 | "USER_CONN_ID" => $get["id"] |
@@ -612,8 +613,7 @@ discard block |
||
| 612 | 613 | |
| 613 | 614 | # SUCCESS-MESSAGE |
| 614 | 615 | $data["process"] = "update-form"; |
| 615 | - } |
|
| 616 | - else if ($this->isPost()) |
|
| 616 | + } else if ($this->isPost()) |
|
| 617 | 617 | { |
| 618 | 618 | # STANDARD VALIDATIONS [check needed arguments] |
| 619 | 619 | $needles = ['_conn_id', 'type', 'aliasname']; |
@@ -685,13 +685,15 @@ discard block |
||
| 685 | 685 | "USER_CONN_ID" => $post["_conn_id"], |
| 686 | 686 | ]); |
| 687 | 687 | |
| 688 | - if (!count($userConnection)) |
|
| 689 | - throw new \Exception("The Connection does not exists"); |
|
| 688 | + if (!count($userConnection)) { |
|
| 689 | + throw new \Exception("The Connection does not exists"); |
|
| 690 | + } |
|
| 690 | 691 | |
| 691 | 692 | $userConnection = array_shift($userConnection); |
| 692 | 693 | |
| 693 | - if ($userConnection->STATE == 'I') |
|
| 694 | - throw new \Drone\Exception\Exception("This connection was deleted", 300); |
|
| 694 | + if ($userConnection->STATE == 'I') { |
|
| 695 | + throw new \Drone\Exception\Exception("This connection was deleted", 300); |
|
| 696 | + } |
|
| 695 | 697 | |
| 696 | 698 | $userConnection->exchangeArray([ |
| 697 | 699 | "CONN_TYPE_ID" => $post["type"], |
@@ -723,22 +725,19 @@ discard block |
||
| 723 | 725 | |
| 724 | 726 | # SUCCESS-MESSAGE |
| 725 | 727 | $data["process"] = "process-response"; |
| 726 | - } |
|
| 727 | - else |
|
| 728 | + } else |
|
| 728 | 729 | { |
| 729 | 730 | $http = new Http(); |
| 730 | 731 | $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED); |
| 731 | 732 | |
| 732 | 733 | die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!'); |
| 733 | 734 | } |
| 734 | - } |
|
| 735 | - catch (\Drone\Exception\Exception $e) |
|
| 735 | + } catch (\Drone\Exception\Exception $e) |
|
| 736 | 736 | { |
| 737 | 737 | # ERROR-MESSAGE |
| 738 | 738 | $data["process"] = "warning"; |
| 739 | 739 | $data["message"] = $e->getMessage(); |
| 740 | - } |
|
| 741 | - catch (\Exception $e) |
|
| 740 | + } catch (\Exception $e) |
|
| 742 | 741 | { |
| 743 | 742 | $file = str_replace('\\', '', __CLASS__); |
| 744 | 743 | $storage = new \Drone\Exception\Storage("cache/$file.json"); |
@@ -786,15 +785,16 @@ discard block |
||
| 786 | 785 | if (!$hd || !@fwrite($hd, $errorInformation)) |
| 787 | 786 | { |
| 788 | 787 | # error storing are not mandatory! |
| 788 | + } else { |
|
| 789 | + @fclose($hd); |
|
| 789 | 790 | } |
| 790 | - else |
|
| 791 | - @fclose($hd); |
|
| 792 | 791 | |
| 793 | 792 | $config = include 'config/application.config.php'; |
| 794 | 793 | $dev = $config["environment"]["dev_mode"]; |
| 795 | 794 | |
| 796 | - if ($dev) |
|
| 797 | - echo $errorInformation; |
|
| 795 | + if ($dev) { |
|
| 796 | + echo $errorInformation; |
|
| 797 | + } |
|
| 798 | 798 | } |
| 799 | 799 | } |
| 800 | 800 | } |
| 801 | 801 | \ No newline at end of file |
@@ -6,19 +6,19 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Identifiers extends Entity |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * @var integer |
|
| 11 | - */ |
|
| 12 | - public $CONN_IDENTI_ID; |
|
| 9 | + /** |
|
| 10 | + * @var integer |
|
| 11 | + */ |
|
| 12 | + public $CONN_IDENTI_ID; |
|
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * @var string |
|
| 16 | - */ |
|
| 17 | - public $CONN_IDENTI_NAME; |
|
| 14 | + /** |
|
| 15 | + * @var string |
|
| 16 | + */ |
|
| 17 | + public $CONN_IDENTI_NAME; |
|
| 18 | 18 | |
| 19 | 19 | public function __construct($data = []) |
| 20 | 20 | { |
| 21 | - parent::__construct($data); |
|
| 21 | + parent::__construct($data); |
|
| 22 | 22 | $this->setTableName("SWM_CONN_IDENTIFIERS"); |
| 23 | 23 | } |
| 24 | 24 | } |
| 25 | 25 | \ No newline at end of file |
@@ -6,19 +6,19 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ConnectionType extends Entity |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * @var integer |
|
| 11 | - */ |
|
| 12 | - public $CONN_TYPE_ID; |
|
| 9 | + /** |
|
| 10 | + * @var integer |
|
| 11 | + */ |
|
| 12 | + public $CONN_TYPE_ID; |
|
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * @var string |
|
| 16 | - */ |
|
| 17 | - public $CONN_TYPE_NAME; |
|
| 14 | + /** |
|
| 15 | + * @var string |
|
| 16 | + */ |
|
| 17 | + public $CONN_TYPE_NAME; |
|
| 18 | 18 | |
| 19 | 19 | public function __construct($data = []) |
| 20 | 20 | { |
| 21 | - parent::__construct($data); |
|
| 21 | + parent::__construct($data); |
|
| 22 | 22 | $this->setTableName("SWM_CONNECTION_TYPES"); |
| 23 | 23 | } |
| 24 | 24 | } |
| 25 | 25 | \ No newline at end of file |
@@ -6,29 +6,29 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ConnectionTypeField extends Entity |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * @var integer |
|
| 11 | - */ |
|
| 12 | - public $CONN_TYPE_ID; |
|
| 9 | + /** |
|
| 10 | + * @var integer |
|
| 11 | + */ |
|
| 12 | + public $CONN_TYPE_ID; |
|
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * @var integer |
|
| 16 | - */ |
|
| 17 | - public $CONN_IDENTI_ID; |
|
| 14 | + /** |
|
| 15 | + * @var integer |
|
| 16 | + */ |
|
| 17 | + public $CONN_IDENTI_ID; |
|
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @var string |
|
| 21 | - */ |
|
| 22 | - public $FIELD_NAME; |
|
| 19 | + /** |
|
| 20 | + * @var string |
|
| 21 | + */ |
|
| 22 | + public $FIELD_NAME; |
|
| 23 | 23 | |
| 24 | - /** |
|
| 25 | - * @var string |
|
| 26 | - */ |
|
| 27 | - public $PLACEHOLDER; |
|
| 24 | + /** |
|
| 25 | + * @var string |
|
| 26 | + */ |
|
| 27 | + public $PLACEHOLDER; |
|
| 28 | 28 | |
| 29 | 29 | public function __construct($data = []) |
| 30 | 30 | { |
| 31 | - parent::__construct($data); |
|
| 31 | + parent::__construct($data); |
|
| 32 | 32 | $this->setTableName("SWM_CONN_TYPE_FIELDS"); |
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | \ No newline at end of file |
@@ -6,24 +6,24 @@ |
||
| 6 | 6 | |
| 7 | 7 | class UserConnectionDetails extends Entity |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * @var integer |
|
| 11 | - */ |
|
| 12 | - public $USER_CONN_ID; |
|
| 9 | + /** |
|
| 10 | + * @var integer |
|
| 11 | + */ |
|
| 12 | + public $USER_CONN_ID; |
|
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * @var integer |
|
| 16 | - */ |
|
| 17 | - public $CONN_IDENTI_ID; |
|
| 14 | + /** |
|
| 15 | + * @var integer |
|
| 16 | + */ |
|
| 17 | + public $CONN_IDENTI_ID; |
|
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @var string |
|
| 21 | - */ |
|
| 22 | - public $FIELD_VALUE; |
|
| 19 | + /** |
|
| 20 | + * @var string |
|
| 21 | + */ |
|
| 22 | + public $FIELD_VALUE; |
|
| 23 | 23 | |
| 24 | 24 | public function __construct($data = []) |
| 25 | 25 | { |
| 26 | - parent::__construct($data); |
|
| 26 | + parent::__construct($data); |
|
| 27 | 27 | $this->setTableName("SWM_USER_CONN_DETAILS"); |
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | \ No newline at end of file |
@@ -6,39 +6,39 @@ |
||
| 6 | 6 | |
| 7 | 7 | class UserConnection extends Entity |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * @var integer |
|
| 11 | - */ |
|
| 12 | - public $USER_CONN_ID; |
|
| 13 | - |
|
| 14 | - /** |
|
| 15 | - * @var integer |
|
| 16 | - */ |
|
| 17 | - public $USER_ID; |
|
| 18 | - |
|
| 19 | - /** |
|
| 20 | - * @var integer |
|
| 21 | - */ |
|
| 22 | - public $CONN_TYPE_ID; |
|
| 23 | - |
|
| 24 | - /** |
|
| 25 | - * @var string |
|
| 26 | - */ |
|
| 27 | - public $CONNECTION_NAME; |
|
| 28 | - |
|
| 29 | - /** |
|
| 30 | - * @var string |
|
| 31 | - */ |
|
| 32 | - public $STATE; |
|
| 33 | - |
|
| 34 | - /** |
|
| 35 | - * @var date |
|
| 36 | - */ |
|
| 37 | - public $RECORD_DATE; |
|
| 9 | + /** |
|
| 10 | + * @var integer |
|
| 11 | + */ |
|
| 12 | + public $USER_CONN_ID; |
|
| 13 | + |
|
| 14 | + /** |
|
| 15 | + * @var integer |
|
| 16 | + */ |
|
| 17 | + public $USER_ID; |
|
| 18 | + |
|
| 19 | + /** |
|
| 20 | + * @var integer |
|
| 21 | + */ |
|
| 22 | + public $CONN_TYPE_ID; |
|
| 23 | + |
|
| 24 | + /** |
|
| 25 | + * @var string |
|
| 26 | + */ |
|
| 27 | + public $CONNECTION_NAME; |
|
| 28 | + |
|
| 29 | + /** |
|
| 30 | + * @var string |
|
| 31 | + */ |
|
| 32 | + public $STATE; |
|
| 33 | + |
|
| 34 | + /** |
|
| 35 | + * @var date |
|
| 36 | + */ |
|
| 37 | + public $RECORD_DATE; |
|
| 38 | 38 | |
| 39 | 39 | public function __construct($data = []) |
| 40 | 40 | { |
| 41 | - parent::__construct($data); |
|
| 41 | + parent::__construct($data); |
|
| 42 | 42 | $this->setTableName("SWM_USER_CONNECTIONS"); |
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | \ No newline at end of file |