mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-24 06:54:51 +03:00
53 lines
1.3 KiB
PHP
53 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* @package Joomla.Administrator
|
|
* @subpackage com_oauthserver
|
|
*
|
|
* @copyright (c) 2024. Webmasterskaya. <https://webmasterskaya.xyz>
|
|
* @license MIT; see LICENSE.txt
|
|
**/
|
|
|
|
namespace Webmasterskaya\Component\OauthServer\Administrator\Table;
|
|
|
|
use Joomla\CMS\Table\Table;
|
|
use Joomla\Database\DatabaseDriver;
|
|
|
|
\defined('_JEXEC') or die;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property string $identifier
|
|
* @property \DateTimeInterface|string $expiry
|
|
* @property int|null $user_id
|
|
* @property string|array $scopes
|
|
* @property int $client_id
|
|
* @property bool|int $revoked
|
|
*
|
|
* @since version
|
|
*/
|
|
class AccessTokenTable extends Table implements RevokedTableInterface
|
|
{
|
|
use RevokedTableTrait;
|
|
|
|
/**
|
|
* Indicates that columns fully support the NULL value in the database
|
|
*
|
|
* @var boolean
|
|
* @since version
|
|
*/
|
|
protected $_supportNullValue = true;
|
|
|
|
/**
|
|
* An array of key names to be json encoded in the bind function
|
|
*
|
|
* @var array
|
|
* @since version
|
|
*/
|
|
protected $_jsonEncode = ['scopes'];
|
|
|
|
public function __construct(DatabaseDriver $db)
|
|
{
|
|
parent::__construct('#__webmasterskaya_oauthserver_access_tokens', 'id', $db);
|
|
}
|
|
}
|