Adicion de end point SYSTEM para DBEngines
This commit is contained in:
@@ -100,22 +100,7 @@ class DataBaseConnection
|
||||
|
||||
if (isset($dataDBConnection['DBS_TYPE'])) {
|
||||
$typesExists = array();
|
||||
G::LoadClass( 'dbConnections' );
|
||||
$dbs = new dbConnections($pro_uid);
|
||||
$dbServices = $dbs->getDbServicesAvailables();
|
||||
foreach ($dbServices as $value) {
|
||||
$typesExists[] = $value['id'];
|
||||
}
|
||||
if (!in_array($dataDBConnection['DBS_TYPE'], $typesExists)) {
|
||||
throw (new \Exception("This 'dbs_type' is invalid"));
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($dataDBConnection['DBS_TYPE'])) {
|
||||
$typesExists = array();
|
||||
|
||||
$dbs = new dbConnections($pro_uid);
|
||||
$dbServices = $dbs->getDbServicesAvailables();
|
||||
$dbServices = $this->getDbEngines();
|
||||
foreach ($dbServices as $value) {
|
||||
$typesExists[] = $value['id'];
|
||||
}
|
||||
@@ -313,6 +298,23 @@ class DataBaseConnection
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Data Base Engines
|
||||
*
|
||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||
* @copyright Colosa - Bolivia
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getDbEngines () {
|
||||
if (!class_exists('dbConnections')) {
|
||||
G::LoadClass('dbConnections');
|
||||
}
|
||||
$dbs = new dbConnections();
|
||||
$dbServices = $dbs->getDbServicesAvailables();
|
||||
return $dbServices;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate Process Uid
|
||||
* @var string $pro_uid. Uid for process
|
||||
|
||||
Reference in New Issue
Block a user