WIKINDX API 6.9.0

TEMPSTORAGE.php

WIKINDX : Bibliographic Management system.

Tags
see
https://wikindx.sourceforge.io/

The WIKINDX SourceForge project

author

The WIKINDX Team

license

https://www.isc.org/licenses/ ISC License

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>
Fetch data array
fetchOne()  : mixed
Fetch one array element
delete()  : mixed
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(class $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 : class
$uuid : string
$data : array<string|int, mixed>
$overwrite : bool = FALSE

Default = FALSE

Return values
bool

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

exists()

Check a row exists

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

fetch()

Fetch data array

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

$data

fetchOne()

Fetch one array element

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

$data FALSE if $key is not in row

delete()

Delete row

delete(class $db, string $uuid) : mixed
Parameters
$db : class
$uuid : string

deleteKeys()

Delete keys from the row data array

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

FALSE if row doesn't exist, otherwise TRUE


        
On this page

Search results