forked from verdnatura/hedera-web
33 lines
475 B
PHP
33 lines
475 B
PHP
<?php
|
|
|
|
namespace Vn\Web;
|
|
|
|
require_once (__DIR__.'/rest-service.php');
|
|
|
|
/**
|
|
* Base class for REST services.
|
|
**/
|
|
abstract class RestRequest extends \Vn\Lib\Method
|
|
{
|
|
/**
|
|
* 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 ();
|
|
}
|
|
}
|
|
|
|
?>
|