FileAccess Orion

DbaOptions extends AdapterOptions
in package

These are options specific to the APC adapter

Table of Contents

$__prioritizedProperties__  : array<string|int, string>
Prioritized properties ordered by prio to be set first in case a bulk of options sets set at once
$__strictMode__  : bool
We use the __ prefix to avoid collisions with properties in user-implementations.
$adapter  : null|StorageInterface
The adapter using these options
$handler  : string
The name of the handler which shall be used for accessing the database.
$keyPattern  : string
Validate key against pattern
$mode  : string
The mode to open the database
$namespace  : string
Namespace option
$namespaceSeparator  : string
Namespace separator
$pathname  : string
Pathname to the database file
$readable  : bool
Readable option
$ttl  : int|float
TTL option
$writable  : bool
Writable option
__construct()  : mixed
Constructor
__get()  : mixed
Get a configuration property
__isset()  : bool
Test if a configuration property is null
__set()  : void
Set a configuration property
__unset()  : void
Set a configuration property to NULL
getHandler()  : mixed
getKeyPattern()  : string
Get key pattern
getMode()  : mixed
getNamespace()  : string
Get namespace
getNamespaceSeparator()  : string
Get namespace separator
getPathname()  : string
Get pathname to database file
getReadable()  : bool
If reading data from cache enabled.
getTtl()  : float
Get time to live.
getWritable()  : bool
If writing data to cache enabled.
setAdapter()  : AdapterOptions
Adapter using this instance
setFromArray()  : AbstractOptions
Set one or more configuration properties
setHandler()  : DbaOptions
setKeyPattern()  : AdapterOptions
Set key pattern
setMode()  : DbaOptions
setNamespace()  : AdapterOptions
Set namespace.
setNamespaceSeparator()  : DbaOptions
Set namespace separator
setPathname()  : DbaOptions
Set pathname to database file
setReadable()  : AdapterOptions
Enable/Disable reading data from cache.
setTtl()  : AdapterOptions
Set time to live.
setWritable()  : AdapterOptions
Enable/Disable writing data to cache.
toArray()  : array<string|int, mixed>
Cast to array
normalizeTtl()  : void
Validates and normalize a TTL.
triggerOptionEvent()  : void
Triggers an option event if this options instance has a connection to an adapter implements EventsCapableInterface.

Properties

$__prioritizedProperties__

Prioritized properties ordered by prio to be set first in case a bulk of options sets set at once

protected array<string|int, string> $__prioritizedProperties__ = []

$__strictMode__

We use the __ prefix to avoid collisions with properties in user-implementations.

protected bool $__strictMode__ = true

$handler

The name of the handler which shall be used for accessing the database.

protected string $handler = 'flatfile'

$keyPattern

Validate key against pattern

protected string $keyPattern = ''

$mode

The mode to open the database

protected string $mode = 'c'

$namespace

Namespace option

protected string $namespace = 'zfcache'

$namespaceSeparator

Namespace separator

protected string $namespaceSeparator = ':'

$pathname

Pathname to the database file

protected string $pathname = ''

$ttl

TTL option

protected int|float $ttl = 0

0 means infinite or maximum of adapter

Methods

__construct()

Constructor

public __construct([array<string|int, mixed>|Traversable|null $options = null ]) : mixed
Parameters
$options : array<string|int, mixed>|Traversable|null = null
Return values
mixed

__get()

Get a configuration property

public __get(string $key) : mixed
Parameters
$key : string
Tags
see
ParameterObject::__get()
throws
BadMethodCallException
Return values
mixed

__isset()

Test if a configuration property is null

public __isset(string $key) : bool
Parameters
$key : string
Tags
see
ParameterObject::__isset()
Return values
bool

__set()

Set a configuration property

public __set(string $key, mixed $value) : void
Parameters
$key : string
$value : mixed
Tags
see
ParameterObject::__set()
throws
BadMethodCallException
Return values
void

__unset()

Set a configuration property to NULL

public __unset(string $key) : void
Parameters
$key : string
Tags
see
ParameterObject::__unset()
throws
InvalidArgumentException
Return values
void

getHandler()

public getHandler() : mixed
Return values
mixed

getKeyPattern()

Get key pattern

public getKeyPattern() : string
Return values
string

getMode()

public getMode() : mixed
Return values
mixed

getNamespace()

Get namespace

public getNamespace() : string
Return values
string

getNamespaceSeparator()

Get namespace separator

public getNamespaceSeparator() : string
Return values
string

getPathname()

Get pathname to database file

public getPathname() : string
Return values
string

getReadable()

If reading data from cache enabled.

public getReadable() : bool
Return values
bool

getTtl()

Get time to live.

public getTtl() : float
Return values
float

getWritable()

If writing data to cache enabled.

public getWritable() : bool
Return values
bool

setHandler()

public setHandler(string $handler) : DbaOptions
Parameters
$handler : string
Return values
DbaOptions

Provides a fluent interface

setNamespaceSeparator()

Set namespace separator

public setNamespaceSeparator(string $namespaceSeparator) : DbaOptions
Parameters
$namespaceSeparator : string
Return values
DbaOptions

Provides a fluent interface

setPathname()

Set pathname to database file

public setPathname(string $pathname) : DbaOptions
Parameters
$pathname : string
Return values
DbaOptions

Provides a fluent interface

toArray()

Cast to array

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

triggerOptionEvent()

Triggers an option event if this options instance has a connection to an adapter implements EventsCapableInterface.

protected triggerOptionEvent(string $optionName, mixed $optionValue) : void
Parameters
$optionName : string
$optionValue : mixed
Return values
void

Search results