WIKINDX API 6.10.2

TEMPSTORAGE

Table of Contents

Functions

getUuid()  : string
Get UUID from database
store()  : bool
Store/merge data.
exists()  : bool
Check a row exists
fetch()  : array<string|int, mixed>|false
Fetch data array
fetchOne()  : mixed
Fetch one array element
delete()  : void
Delete row
deleteKeys()  : bool
Delete keys from the row data array

Functions

getUuid()

Get UUID from database

getUuid(class $db) : string
Parameters
$db : class
Return values
string

$uuid

store()

Store/merge data.

store(SQL $db, string $uuid, array<string|int, mixed> $data[, bool $overwrite = FALSE ]) : bool

If $overwrite is FALSE, the data to be stored is merged with the existing data in the database.

Parameters
$db : SQL
$uuid : string
$data : array<string|int, mixed>
$overwrite : bool = FALSE

Default is FALSE

Return values
bool

FALSE if $uuid is not set or $data empty, otherwise TRUE

exists()

Check a row exists

exists(SQL $db, string $uuid) : bool
Parameters
$db : SQL
$uuid : string
Return values
bool

fetch()

Fetch data array

fetch(SQL $db, string $uuid) : array<string|int, mixed>|false
Parameters
$db : SQL
$uuid : string
Return values
array<string|int, mixed>|false

$data

fetchOne()

Fetch one array element

fetchOne(SQL $db, string $uuid, string $key) : mixed
Parameters
$db : SQL
$uuid : string
$key : string
Return values
mixed

$data FALSE if $key is not in row

delete()

Delete row

delete(SQL $db, string $uuid) : void
Parameters
$db : SQL
$uuid : string

deleteKeys()

Delete keys from the row data array

deleteKeys(SQL $db, string $uuid, array<string|int, mixed> $deleteKeys) : bool
Parameters
$db : SQL
$uuid : string
$deleteKeys : array<string|int, mixed>
Return values
bool

FALSE if row doesn't exist, otherwise TRUE


        
On this page

Search results