Documentation

AbstractFilesystemStorage
in package
implements FlexStorageInterface

AbstractYes

Class AbstractFilesystemStorage

Table of Contents

Interfaces

FlexStorageInterface
Defines Flex Storage layer.

Properties

$caseSensitive  : bool
$dataFormatter  : FileFormatterInterface
$keyField  : string
$keyLen  : int

Methods

buildStorageKey()  : string
buildStorageKeyParams()  : string
extractKeysFromRow()  : array<string|int, mixed>
extractKeysFromStorageKey()  : array<string|int, mixed>
getKeyField()  : string
hasKeys()  : array<string|int, bool>
Check if the key exists in the storage.
isIndexed()  : bool
normalizeKey()  : string
detectDataFormatter()  : string|null
generateKey()  : string
Generates a random, unique key for the row.
getFile()  : CompiledJsonFile|CompiledYamlFile|CompiledMarkdownFile
initDataFormatter()  : void
resolvePath()  : string
validateKey()  : bool
Checks if a key is valid.

Properties

Methods

buildStorageKey()

public buildStorageKey(array<string|int, mixed> $keys[, bool $includeParams = true ]) : string
Parameters
$keys : array<string|int, mixed>
$includeParams : bool = true
Return values
string

buildStorageKeyParams()

public buildStorageKeyParams(array<string|int, mixed> $keys) : string
Parameters
$keys : array<string|int, mixed>
Return values
string

extractKeysFromRow()

public extractKeysFromRow(array<string|int, mixed> $row) : array<string|int, mixed>
Parameters
$row : array<string|int, mixed>
Return values
array<string|int, mixed>

extractKeysFromStorageKey()

public extractKeysFromStorageKey(string $key) : array<string|int, mixed>
Parameters
$key : string
Return values
array<string|int, mixed>

hasKeys()

Check if the key exists in the storage.

public hasKeys(array<string|int, mixed> $keys) : array<string|int, bool>
Parameters
$keys : array<string|int, mixed>

Storage key of an object.

Tags
see
FlexStorageInterface::hasKeys()
Return values
array<string|int, bool>

Returns keys with true if the key exists in the storage, false otherwise.

detectDataFormatter()

protected detectDataFormatter(string $filename) : string|null
Parameters
$filename : string
Return values
string|null

generateKey()

Generates a random, unique key for the row.

protected generateKey() : string
Return values
string

initDataFormatter()

protected initDataFormatter(string|array<string|int, mixed> $formatter) : void
Parameters
$formatter : string|array<string|int, mixed>

validateKey()

Checks if a key is valid.

protected validateKey(string $key) : bool
Parameters
$key : string
Return values
bool

        
On this page

Search results