SessionConnectionConfigTrait
Table of Contents
Methods
- getBatchConfig() : mixed
- getDataAttribute() : string
- getDataAttributeType() : string
- getHashKey() : string
- getMaxLockRetryMicrotime() : number
- getMaxLockWaitTime() : number
- getMinLockRetryMicrotime() : number
- getSessionLifetime() : number
- getSessionLifetimeAttribute() : string
- getTableName() : string
- initConfig() : mixed
- It initialize the Config class and it sets values in case of valid configurations.
- isConsistentRead() : bool
- isLocking() : bool
- setBatchConfig() : mixed
- setConsistentRead() : mixed
- setDataAttribute() : mixed
- setDataAttributeType() : mixed
- setHashKey() : mixed
- setLocking() : mixed
- setMaxLockRetryMicrotime() : mixed
- setMaxLockWaitTime() : mixed
- setMinLockRetryMicrotime() : mixed
- setSessionLifetime() : mixed
- setSessionLifetimeAttribute() : mixed
- setTableName() : mixed
Methods
getBatchConfig()
public
getBatchConfig() : mixed
getDataAttribute()
public
getDataAttribute() : string
Return values
stringgetDataAttributeType()
public
getDataAttributeType() : string
Return values
stringgetHashKey()
public
getHashKey() : string
Return values
stringgetMaxLockRetryMicrotime()
public
getMaxLockRetryMicrotime() : number
Return values
numbergetMaxLockWaitTime()
public
getMaxLockWaitTime() : number
Return values
numbergetMinLockRetryMicrotime()
public
getMinLockRetryMicrotime() : number
Return values
numbergetSessionLifetime()
public
getSessionLifetime() : number
Return values
numbergetSessionLifetimeAttribute()
public
getSessionLifetimeAttribute() : string
Return values
stringgetTableName()
public
getTableName() : string
Return values
stringinitConfig()
It initialize the Config class and it sets values in case of valid configurations.
public
initConfig([array<string|int, mixed> $config = [] ]) : mixed
It transforms parameters underscore separated in camelcase "this_is_a_test" => ThisIsATest and it uses it in order to set the values.
Parameters
- $config : array<string|int, mixed> = []
isConsistentRead()
public
isConsistentRead() : bool
Return values
boolisLocking()
public
isLocking() : bool
Return values
boolsetBatchConfig()
public
setBatchConfig(mixed $batchConfig) : mixed
Parameters
- $batchConfig : mixed
setConsistentRead()
public
setConsistentRead(bool $consistentRead) : mixed
Parameters
- $consistentRead : bool
setDataAttribute()
public
setDataAttribute(string $dataAttribute) : mixed
Parameters
- $dataAttribute : string
setDataAttributeType()
public
setDataAttributeType(string $dataAttributeType) : mixed
Parameters
- $dataAttributeType : string
setHashKey()
public
setHashKey(string $hashKey) : mixed
Parameters
- $hashKey : string
setLocking()
public
setLocking(bool $locking) : mixed
Parameters
- $locking : bool
setMaxLockRetryMicrotime()
public
setMaxLockRetryMicrotime(number $maxLockRetryMicrotime) : mixed
Parameters
- $maxLockRetryMicrotime : number
setMaxLockWaitTime()
public
setMaxLockWaitTime(number $maxLockWaitTime) : mixed
Parameters
- $maxLockWaitTime : number
setMinLockRetryMicrotime()
public
setMinLockRetryMicrotime(number $minLockRetryMicrotime) : mixed
Parameters
- $minLockRetryMicrotime : number
setSessionLifetime()
public
setSessionLifetime(number $sessionLifetime) : mixed
Parameters
- $sessionLifetime : number
setSessionLifetimeAttribute()
public
setSessionLifetimeAttribute(string $sessionLifetimeAttribute) : mixed
Parameters
- $sessionLifetimeAttribute : string
setTableName()
public
setTableName(string $tableName) : mixed
Parameters
- $tableName : string