mirror of
				https://github.com/webmasterskaya/joomla-oauth-server.git
				synced 2025-10-31 20:03:21 +03:00 
			
		
		
		
	AccessTokenTable
This commit is contained in:
		
							parent
							
								
									5e76b0e9c3
								
							
						
					
					
						commit
						c842e7fa79
					
				
							
								
								
									
										35
									
								
								com_oauthserver/administrator/src/Table/AccessTokenTable.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								com_oauthserver/administrator/src/Table/AccessTokenTable.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,35 @@ | ||||
| <?php | ||||
| 
 | ||||
| namespace Webmasterskaya\Component\OauthServer\Administrator\Table; | ||||
| 
 | ||||
| use DateTimeImmutable; | ||||
| use Joomla\CMS\Table\Table; | ||||
| use Joomla\Database\DatabaseDriver; | ||||
| use League\OAuth2\Server\CryptKey; | ||||
| use League\OAuth2\Server\Entities\AccessTokenEntityInterface; | ||||
| use League\OAuth2\Server\Entities\ClientEntityInterface; | ||||
| use League\OAuth2\Server\Entities\ScopeEntityInterface; | ||||
| 
 | ||||
| class AccessTokenTable extends Table | ||||
| { | ||||
|     /** | ||||
|      * 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); | ||||
|     } | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Artem Vasilev
						Artem Vasilev