ApiKeysEntityDao
extends DaoBase
in package
uses
DaoTrait
DBアクセス基底処理。
こいつを継承してアクセス処理を構築する。
Table of Contents
Properties
- $context : IDatabaseContext
- $logger : ILogger
- ロガー。
Methods
- __construct() : mixed
- deleteApiKeyByUserId() : int
- insertApiKey() : void
- selectApiKeyByUserId() : DatabaseRowResult
- Undocumented function
- selectExistsApiKeyByApiKey() : bool
- selectExistsApiKeyByUserId() : bool
Properties
$context read-only
protected
IDatabaseContext
$context
$logger read-only
ロガー。
protected
ILogger
$logger
Methods
__construct()
public
__construct(IDatabaseContext $context) : mixed
Parameters
- $context : IDatabaseContext
deleteApiKeyByUserId()
public
deleteApiKeyByUserId(string $userId) : int
Parameters
- $userId : string
Return values
intinsertApiKey()
public
insertApiKey(string $userId, string $apiKey, string $secret) : void
Parameters
- $userId : string
- $apiKey : string
- $secret : string
selectApiKeyByUserId()
Undocumented function
public
selectApiKeyByUserId(string $userId) : DatabaseRowResult
Parameters
- $userId : string
Tags
Return values
DatabaseRowResultselectExistsApiKeyByApiKey()
public
selectExistsApiKeyByApiKey(string $apiKey) : bool
Parameters
- $apiKey : string
Return values
boolselectExistsApiKeyByUserId()
public
selectExistsApiKeyByUserId(string $userId) : bool
Parameters
- $userId : string