mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-24 02:44:51 +03:00
cleanup code
This commit is contained in:
parent
0d9b10ef8b
commit
b3da305166
@ -11,42 +11,11 @@ namespace Webmasterskaya\Component\OauthServer\Administrator\Table;
|
|||||||
|
|
||||||
use Joomla\CMS\Event\AbstractEvent;
|
use Joomla\CMS\Event\AbstractEvent;
|
||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
use Joomla\Database\DatabaseDriver;
|
|
||||||
|
|
||||||
\defined('_JEXEC') or die;
|
\defined('_JEXEC') or die;
|
||||||
|
|
||||||
trait RevokedTableTrait
|
trait RevokedTableTrait
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
* @since version
|
|
||||||
* @noinspection PhpMissingFieldTypeInspection
|
|
||||||
*/
|
|
||||||
protected $_tbl = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
* @since version
|
|
||||||
* @noinspection PhpMissingFieldTypeInspection
|
|
||||||
*/
|
|
||||||
protected $_tbl_key = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var array
|
|
||||||
* @since version
|
|
||||||
* @noinspection PhpMissingFieldTypeInspection
|
|
||||||
*/
|
|
||||||
protected $_tbl_keys = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var DatabaseDriver
|
|
||||||
* @since version
|
|
||||||
* @noinspection PhpMissingFieldTypeInspection
|
|
||||||
*/
|
|
||||||
protected $_db;
|
|
||||||
|
|
||||||
abstract public function getDbo();
|
|
||||||
|
|
||||||
public function revoke($pks = null): bool
|
public function revoke($pks = null): bool
|
||||||
{
|
{
|
||||||
// Pre-processing by observers
|
// Pre-processing by observers
|
||||||
@ -154,6 +123,8 @@ trait RevokedTableTrait
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
abstract public function getDbo();
|
||||||
|
|
||||||
abstract public function getDispatcher();
|
abstract public function getDispatcher();
|
||||||
|
|
||||||
abstract public function setError($error);
|
abstract public function setError($error);
|
||||||
|
Loading…
Reference in New Issue
Block a user