mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-24 02:44:51 +03:00
Убрал реализацию Entity из ClientTable
This commit is contained in:
parent
2e2f7e627b
commit
14ff5d798d
@ -7,18 +7,37 @@ use Joomla\Database\DatabaseDriver;
|
|||||||
use League\OAuth2\Server\Entities\ClientEntityInterface;
|
use League\OAuth2\Server\Entities\ClientEntityInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property int $id
|
* @property int $id;
|
||||||
* @property string $name
|
* @property string $identifier;
|
||||||
* @property string $identifier
|
* @property string $name;
|
||||||
* @property string|null $secret
|
* @property ?string $secret;
|
||||||
* @property int $public
|
* @property string|array|null $redirect_uris;
|
||||||
* @property string|null $redirect_uri
|
* @property string|array|null $grants;
|
||||||
* @property int $allow_plain_text_pkce
|
* @property string|array|null $scopes;
|
||||||
|
* @property int $active;
|
||||||
|
* @property int $public;
|
||||||
|
* @property int $allow_plain_text_pkce;
|
||||||
*
|
*
|
||||||
* @since version
|
* @since version
|
||||||
*/
|
*/
|
||||||
class ClientTable extends Table implements ClientEntityInterface
|
class ClientTable extends Table
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Indicates that columns fully support the NULL value in the database
|
||||||
|
*
|
||||||
|
* @var boolean
|
||||||
|
* @since 3.10.0
|
||||||
|
*/
|
||||||
|
protected $_supportNullValue = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An array of key names to be json encoded in the bind function
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
* @since 3.3
|
||||||
|
*/
|
||||||
|
protected $_jsonEncode = ['redirect_uris', 'grants', 'scopes'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@ -30,24 +49,4 @@ class ClientTable extends Table implements ClientEntityInterface
|
|||||||
{
|
{
|
||||||
parent::__construct('#__webmasterskaya_oauthserver_clients', 'id', $db);
|
parent::__construct('#__webmasterskaya_oauthserver_clients', 'id', $db);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getIdentifier()
|
|
||||||
{
|
|
||||||
return $this->identifier;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getName()
|
|
||||||
{
|
|
||||||
return $this->name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getRedirectUri()
|
|
||||||
{
|
|
||||||
return $this->redirect_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function isConfidential()
|
|
||||||
{
|
|
||||||
return !$this->public;
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user