PeServer

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

Methods

deleteApiKeyByUserId()

public deleteApiKeyByUserId(string $userId) : int
Parameters
$userId : string
Return values
int

insertApiKey()

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
phpstan-return

DatabaseRowResult<array{api_key:string,user_id:string,secret_key:string,created_timestamp:string}>

Return values
DatabaseRowResult

selectExistsApiKeyByApiKey()

public selectExistsApiKeyByApiKey(string $apiKey) : bool
Parameters
$apiKey : string
Return values
bool

selectExistsApiKeyByUserId()

public selectExistsApiKeyByUserId(string $userId) : bool
Parameters
$userId : string
Return values
bool

        
On this page

Search results