a-blog cms PHP API Reference

Tfa extends Facade
in package

Table of Contents

Properties

$container  : Container
$instance  : mixed

Methods

__callStatic()  : mixed
checkAuthority()  : bool
checkCorrectTime()  : bool
createSecret()  : string
getInstance()  : mixed
get service instance
getSecretForManual()  : string
getSecretForQRCode()  : string
getSecretKey()  : string|false
isAvailable()  : bool
isAvailableAccount()  : bool
setContainer()  : void
verifyAccount()  : bool
verifyCode()  : bool
getServiceAlias()  : string
getServiceInstance()  : mixed
isCache()  : bool

Properties

$instance

protected static mixed $instance

Methods

__callStatic()

public static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
$method : string
$arguments : array<string|int, mixed>

checkAuthority()

public static checkAuthority() : bool

権限をチェック

Return values
bool

checkCorrectTime()

public static checkCorrectTime() : bool

サーバー時間が正しいかチェック

Return values
bool

createSecret()

public static createSecret() : string

秘密鍵を作成

Return values
string

getInstance()

get service instance

public static getInstance() : mixed

getSecretForManual()

public static getSecretForManual(string $secret) : string

秘密鍵の手動入力用文字列を取得

Parameters
$secret : string
Return values
string

getSecretForQRCode()

public static getSecretForQRCode(string $secret, string $label) : string

秘密鍵のQRコード画像を取得

Parameters
$secret : string
$label : string
Return values
string

getSecretKey()

public static getSecretKey(int $uid) : string|false

秘密鍵を取得

Parameters
$uid : int
Return values
string|false

isAvailable()

public static isAvailable() : bool

2段階認証が有効か判定

Return values
bool

isAvailableAccount()

public static isAvailableAccount(int $uid) : bool

2段階認証が有効なアカウントか判定

Parameters
$uid : int
Return values
bool

verifyAccount()

public static verifyAccount(int $uid, string $code) : bool

アカウントを検証

Parameters
$uid : int
$code : string
Return values
bool

verifyCode()

public static verifyCode(string $secret, string $code) : bool

コードを検証

Parameters
$secret : string
$code : string
Return values
bool

getServiceAlias()

protected static getServiceAlias() : string
Return values
string

getServiceInstance()

protected static getServiceInstance(string $alias) : mixed
Parameters
$alias : string

isCache()

protected static isCache() : bool
Return values
bool

        
On this page

Search results