Alpha version
This commit is contained in:
parent
cfedf3d1b8
commit
83977af8a3
|
@ -307,7 +307,7 @@ class Conn
|
||||||
*
|
*
|
||||||
* @return string The rendered SQL string
|
* @return string The rendered SQL string
|
||||||
**/
|
**/
|
||||||
function render (&$query, &$paramsMap = NULL)
|
function render ($query, $paramsMap = NULL)
|
||||||
{
|
{
|
||||||
if (isset ($paramsMap) && is_array ($paramsMap) && count ($paramsMap) > 0)
|
if (isset ($paramsMap) && is_array ($paramsMap) && count ($paramsMap) > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,12 +32,6 @@ class CliApp extends App
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function json ($json)
|
|
||||||
{
|
|
||||||
print_r ($json);
|
|
||||||
echo "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
function usage ()
|
function usage ()
|
||||||
{
|
{
|
||||||
global $argv;
|
global $argv;
|
||||||
|
|
|
@ -28,25 +28,6 @@ abstract class Method
|
||||||
* @return mixed The result of the method
|
* @return mixed The result of the method
|
||||||
**/
|
**/
|
||||||
abstract function run ();
|
abstract function run ();
|
||||||
|
|
||||||
/**
|
|
||||||
* Authenticates the user agaisnt database and returns its associated
|
|
||||||
* database connection.
|
|
||||||
*
|
|
||||||
* return Db\Conn The database connection
|
|
||||||
**/
|
|
||||||
function login ()
|
|
||||||
{
|
|
||||||
return $this->app->login ();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Logouts the current user.
|
|
||||||
**/
|
|
||||||
function logout ()
|
|
||||||
{
|
|
||||||
$this->app->logout ();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the system database connection.
|
* Returns the system database connection.
|
||||||
|
|
Loading…
Reference in New Issue