diff --git a/appexemplo_v2.0/api/api_controllers/Acesso_menuAPI.class.php b/appexemplo_v2.0/api/api_controllers/Acesso_menuAPI.class.php index 3216c735..2c1bb0de 100644 --- a/appexemplo_v2.0/api/api_controllers/Acesso_menuAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Acesso_menuAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:54 */ namespace api_controllers; @@ -75,6 +75,7 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Acesso_menu; $controller->save($vo); + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -85,7 +86,7 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Acesso_menu; $msg = $controller->delete($id); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } diff --git a/appexemplo_v2.0/api/api_controllers/Acesso_perfilAPI.class.php b/appexemplo_v2.0/api/api_controllers/Acesso_perfilAPI.class.php index 0f32dd9f..2189a852 100644 --- a/appexemplo_v2.0/api/api_controllers/Acesso_perfilAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Acesso_perfilAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:54 */ namespace api_controllers; @@ -31,7 +31,7 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -53,7 +53,7 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -74,7 +74,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Acesso_perfil; $controller->save($vo); - + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -85,7 +86,7 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Acesso_perfil; $msg = $controller->delete($id); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } diff --git a/appexemplo_v2.0/api/api_controllers/Acesso_perfil_menuAPI.class.php b/appexemplo_v2.0/api/api_controllers/Acesso_perfil_menuAPI.class.php index 1cb8f247..3cf7553c 100644 --- a/appexemplo_v2.0/api/api_controllers/Acesso_perfil_menuAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Acesso_perfil_menuAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:54 */ namespace api_controllers; @@ -74,7 +74,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Acesso_perfil_menu; $controller->save($vo); - + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -85,7 +86,7 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Acesso_perfil_menu; $msg = $controller->delete($id); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } diff --git a/appexemplo_v2.0/api/api_controllers/Acesso_perfil_userAPI.class.php b/appexemplo_v2.0/api/api_controllers/Acesso_perfil_userAPI.class.php index 75273a58..bde76ffe 100644 --- a/appexemplo_v2.0/api/api_controllers/Acesso_perfil_userAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Acesso_perfil_userAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:54 */ namespace api_controllers; @@ -31,7 +31,7 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -53,7 +53,7 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -74,7 +74,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Acesso_perfil_user; $controller->save($vo); - + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -85,7 +86,7 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Acesso_perfil_user; $msg = $controller->delete($id); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } diff --git a/appexemplo_v2.0/api/api_controllers/Acesso_userAPI.class.php b/appexemplo_v2.0/api/api_controllers/Acesso_userAPI.class.php index bd8804b8..14ae408f 100644 --- a/appexemplo_v2.0/api/api_controllers/Acesso_userAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Acesso_userAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:54 */ namespace api_controllers; @@ -31,7 +31,7 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -53,7 +53,7 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -74,7 +74,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Acesso_user; $controller->save($vo); - + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -85,7 +86,7 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Acesso_user; $msg = $controller->delete($id); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } diff --git a/appexemplo_v2.0/api/api_controllers/AutoridadeAPI.class.php b/appexemplo_v2.0/api/api_controllers/AutoridadeAPI.class.php index ad509b7a..0ea6dc05 100644 --- a/appexemplo_v2.0/api/api_controllers/AutoridadeAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/AutoridadeAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:54 */ namespace api_controllers; @@ -31,7 +31,7 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -53,7 +53,7 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -74,7 +74,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Autoridade; $controller->save($vo); - + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -85,7 +86,7 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Autoridade; $msg = $controller->delete($id); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } diff --git a/appexemplo_v2.0/api/api_controllers/EnderecoAPI.class.php b/appexemplo_v2.0/api/api_controllers/EnderecoAPI.class.php index dd4846ce..28cebbe0 100644 --- a/appexemplo_v2.0/api/api_controllers/EnderecoAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/EnderecoAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:55 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Endereco; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Endereco; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/MarcaAPI.class.php b/appexemplo_v2.0/api/api_controllers/MarcaAPI.class.php index f8901271..fe829c14 100644 --- a/appexemplo_v2.0/api/api_controllers/MarcaAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/MarcaAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:55 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Marca; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Marca; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/Meta_tipoAPI.class.php b/appexemplo_v2.0/api/api_controllers/Meta_tipoAPI.class.php index 95ea80a6..97c5f864 100644 --- a/appexemplo_v2.0/api/api_controllers/Meta_tipoAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Meta_tipoAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:55 */ namespace api_controllers; @@ -31,6 +31,7 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,6 +53,7 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,6 +75,7 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Meta_tipo; $controller->save($vo); + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,7 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Meta_tipo; $msg = $controller->delete($id); - + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } diff --git a/appexemplo_v2.0/api/api_controllers/MunicipioAPI.class.php b/appexemplo_v2.0/api/api_controllers/MunicipioAPI.class.php index c0fe5a0f..ff51f41c 100644 --- a/appexemplo_v2.0/api/api_controllers/MunicipioAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/MunicipioAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:55 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Municipio; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Municipio; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/Natureza_juridicaAPI.class.php b/appexemplo_v2.0/api/api_controllers/Natureza_juridicaAPI.class.php index 7344901b..0430079d 100644 --- a/appexemplo_v2.0/api/api_controllers/Natureza_juridicaAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Natureza_juridicaAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:55 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Natureza_juridica; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Natureza_juridica; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/PedidoAPI.class.php b/appexemplo_v2.0/api/api_controllers/PedidoAPI.class.php index 62357843..3ec945f8 100644 --- a/appexemplo_v2.0/api/api_controllers/PedidoAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/PedidoAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:55 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Pedido; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Pedido; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/Pedido_itemAPI.class.php b/appexemplo_v2.0/api/api_controllers/Pedido_itemAPI.class.php index d1434121..f4b8904a 100644 --- a/appexemplo_v2.0/api/api_controllers/Pedido_itemAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Pedido_itemAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:55 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Pedido_item; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Pedido_item; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/PessoaAPI.class.php b/appexemplo_v2.0/api/api_controllers/PessoaAPI.class.php index b1a41e4a..9a230d82 100644 --- a/appexemplo_v2.0/api/api_controllers/PessoaAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/PessoaAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:56 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Pessoa; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Pessoa; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/Pessoa_fisicaAPI.class.php b/appexemplo_v2.0/api/api_controllers/Pessoa_fisicaAPI.class.php index 49364b22..7ef532b3 100644 --- a/appexemplo_v2.0/api/api_controllers/Pessoa_fisicaAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Pessoa_fisicaAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:56 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Pessoa_fisica; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Pessoa_fisica; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/Pessoa_juridicaAPI.class.php b/appexemplo_v2.0/api/api_controllers/Pessoa_juridicaAPI.class.php index 6f411fc3..aeae7f51 100644 --- a/appexemplo_v2.0/api/api_controllers/Pessoa_juridicaAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Pessoa_juridicaAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:56 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Pessoa_juridica; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Pessoa_juridica; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/ProdutoAPI.class.php b/appexemplo_v2.0/api/api_controllers/ProdutoAPI.class.php index d1bcd76b..8e8191aa 100644 --- a/appexemplo_v2.0/api/api_controllers/ProdutoAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/ProdutoAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:56 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Produto; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Produto; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/RegiaoAPI.class.php b/appexemplo_v2.0/api/api_controllers/RegiaoAPI.class.php index f2962fdc..bd8a5cab 100644 --- a/appexemplo_v2.0/api/api_controllers/RegiaoAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/RegiaoAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:56 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Regiao; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Regiao; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/SelfilhosmenuAPI.class.php b/appexemplo_v2.0/api/api_controllers/SelfilhosmenuAPI.class.php index b0be211c..68611331 100644 --- a/appexemplo_v2.0/api/api_controllers/SelfilhosmenuAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/SelfilhosmenuAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:53 */ namespace api_controllers; @@ -31,6 +31,7 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,6 +53,7 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } diff --git a/appexemplo_v2.0/api/api_controllers/SelfilhosmenuqtdAPI.class.php b/appexemplo_v2.0/api/api_controllers/SelfilhosmenuqtdAPI.class.php index 9e1c0a24..ea85c65f 100644 --- a/appexemplo_v2.0/api/api_controllers/SelfilhosmenuqtdAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/SelfilhosmenuqtdAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:46 + * System appev2 created in: 2022-07-30 16:51:53 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/TelefoneAPI.class.php b/appexemplo_v2.0/api/api_controllers/TelefoneAPI.class.php index 9e548a09..c89741d2 100644 --- a/appexemplo_v2.0/api/api_controllers/TelefoneAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/TelefoneAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:56 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Telefone; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Telefone; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/TipoAPI.class.php b/appexemplo_v2.0/api/api_controllers/TipoAPI.class.php index 3e6d0826..508e2a8a 100644 --- a/appexemplo_v2.0/api/api_controllers/TipoAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/TipoAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:56 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Tipo; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Tipo; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/UfAPI.class.php b/appexemplo_v2.0/api/api_controllers/UfAPI.class.php index a01aa56f..916b2028 100644 --- a/appexemplo_v2.0/api/api_controllers/UfAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/UfAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:57 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -73,7 +75,8 @@ public static function save(Request $request, Response $response, array $args) $controller = new \Uf; $controller->save($vo); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -83,7 +86,8 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Uf; $msg = $controller->delete($id); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/Vw_acesso_user_menuAPI.class.php b/appexemplo_v2.0/api/api_controllers/Vw_acesso_user_menuAPI.class.php index ab25b111..c0eb209d 100644 --- a/appexemplo_v2.0/api/api_controllers/Vw_acesso_user_menuAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Vw_acesso_user_menuAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:57 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/Vw_pessoaAPI.class.php b/appexemplo_v2.0/api/api_controllers/Vw_pessoaAPI.class.php index 5e2b22d7..36980840 100644 --- a/appexemplo_v2.0/api/api_controllers/Vw_pessoaAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Vw_pessoaAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:57 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/Vw_pessoa_fisicaAPI.class.php b/appexemplo_v2.0/api/api_controllers/Vw_pessoa_fisicaAPI.class.php new file mode 100644 index 00000000..b38563f9 --- /dev/null +++ b/appexemplo_v2.0/api/api_controllers/Vw_pessoa_fisicaAPI.class.php @@ -0,0 +1,60 @@ +selectAll(); + $result = \ArrayHelper::convertArrayFormDin2Pdo($result); + $msg = array( 'qtd'=> \CountHelper::count($result) + , 'result'=>$result + ); + + $response = TGenericAPI::getBodyJson($msg,$response); + return $response; + } + + //-------------------------------------------------------------------------------- + private static function selectByIdInside(array $args) + { + $id = $args['id']; + $controller = new \Vw_pessoa_fisica(); + $result = $controller->selectById($id); + $result = \ArrayHelper::convertArrayFormDin2Pdo($result); + return $result; + } + + //-------------------------------------------------------------------------------- + public static function selectById(Request $request, Response $response, array $args) + { + $result = self::selectByIdInside($args); + $msg = array( 'qtd'=> \CountHelper::count($result) + , 'result'=>$result + ); + + $response = TGenericAPI::getBodyJson($msg,$response); + return $response; + } +} \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/Vw_pessoa_marca_produtoAPI.class.php b/appexemplo_v2.0/api/api_controllers/Vw_pessoa_marca_produtoAPI.class.php index 80b4e830..228ae0db 100644 --- a/appexemplo_v2.0/api/api_controllers/Vw_pessoa_marca_produtoAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Vw_pessoa_marca_produtoAPI.class.php @@ -4,10 +4,10 @@ * Download SysGen: https://github.com/bjverde/sysgen * Download Formdin Framework: https://github.com/bjverde/formDin * - * SysGen Version: 1.9.0-alpha - * FormDin Version: 4.7.5 + * SysGen Version: 1.11.0 + * FormDin Version: 4.19.0 * - * System appev2 created in: 2019-09-10 09:04:47 + * System appev2 created in: 2022-07-30 16:51:57 */ namespace api_controllers; @@ -31,7 +31,8 @@ public static function selectAll(Request $request, Response $response, array $ar $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } @@ -52,7 +53,8 @@ public static function selectById(Request $request, Response $response, array $a $msg = array( 'qtd'=> \CountHelper::count($result) , 'result'=>$result ); - $response = $response->withJson($msg); + + $response = TGenericAPI::getBodyJson($msg,$response); return $response; } } \ No newline at end of file diff --git a/appexemplo_v2.0/api/api_controllers/Vw_regiao_municipioAPI.class.php b/appexemplo_v2.0/api/api_controllers/Vw_regiao_municipioAPI.class.php new file mode 100644 index 00000000..dfc364e4 --- /dev/null +++ b/appexemplo_v2.0/api/api_controllers/Vw_regiao_municipioAPI.class.php @@ -0,0 +1,60 @@ +selectAll(); + $result = \ArrayHelper::convertArrayFormDin2Pdo($result); + $msg = array( 'qtd'=> \CountHelper::count($result) + , 'result'=>$result + ); + + $response = TGenericAPI::getBodyJson($msg,$response); + return $response; + } + + //-------------------------------------------------------------------------------- + private static function selectByIdInside(array $args) + { + $id = $args['id']; + $controller = new \Vw_regiao_municipio(); + $result = $controller->selectById($id); + $result = \ArrayHelper::convertArrayFormDin2Pdo($result); + return $result; + } + + //-------------------------------------------------------------------------------- + public static function selectById(Request $request, Response $response, array $args) + { + $result = self::selectByIdInside($args); + $msg = array( 'qtd'=> \CountHelper::count($result) + , 'result'=>$result + ); + + $response = TGenericAPI::getBodyJson($msg,$response); + return $response; + } +} \ No newline at end of file