Jinya CMS

DatabaseController extends BaseController
in package

Tags

Table of Contents

DEVICE_CODE_COOKIE  = 'JinyaDeviceCode'
$body  : array<string, mixed>
analyzeDatabase()  : ResponseInterface
entityNotFound()  : ResponseInterface
formatIteratorPlain()  : array<string|int, array<string, mixed>>
jsonIterator()  : ResponseInterface
jsonIteratorPlain()  : ResponseInterface
queryDatabase()  : ResponseInterface
executeSqlString()  : array<string|int, mixed>|int

Constants

public mixed DEVICE_CODE_COOKIE = 'JinyaDeviceCode'
Tags

Properties

Methods

analyzeDatabase()

public analyzeDatabase() : ResponseInterface
Tags
throws
JsonException
throws
Exception
Return values
ResponseInterface

entityNotFound()

public entityNotFound(string $message) : ResponseInterface
Parameters
$message : string
Tags
throws
JsonException
Return values
ResponseInterface

formatIteratorPlain()

public formatIteratorPlain(Iterator<string|int, T$iterator) : array<string|int, array<string, mixed>>
Parameters
$iterator : Iterator<string|int, T>
Tags
template

T

throws
JsonException
Return values
array<string|int, array<string, mixed>>

jsonIterator()

public jsonIterator(Iterator $iterator) : ResponseInterface
Parameters
$iterator : Iterator
Tags
throws
JsonException
Return values
ResponseInterface

jsonIteratorPlain()

public jsonIteratorPlain(Iterator $iterator) : ResponseInterface
Parameters
$iterator : Iterator
Tags
throws
JsonException
Return values
ResponseInterface

queryDatabase()

public queryDatabase() : ResponseInterface
Tags
throws
JsonException
Return values
ResponseInterface

executeSqlString()

private executeSqlString(string $sql) : array<string|int, mixed>|int
Parameters
$sql : string
Tags
Return values
array<string|int, mixed>|int

Search results