Refactoring of classes that where in workflow/engine/src , now all of them have a unique parent namespace \ProcessMaker

This commit is contained in:
Erik Amaru Ortiz
2014-04-02 17:02:02 -04:00
parent 4d59bc2d5a
commit 8b823af4ae
40 changed files with 257 additions and 257 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace ProcessMaker\Services\Api;
use \ProcessMaker\Services\Api;
use \Luracast\Restler\RestException;
/**
* Pmtable Api Controller
*
* @protected
*/
class System extends Api
{
/**
* @return array
*
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
* @copyright Colosa - Bolivia
*
* @url GET /db-engines
*/
public function doGetDataBaseEngines()
{
try {
$oDBConnection = new \ProcessMaker\BusinessModel\DataBaseConnection();
$response = $oDBConnection->getDbEngines();
return $response;
} catch (\Exception $e) {
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
}
}
}