Documentation

Query
in package

Table of Contents

Constants

DIR  = "queries/"

Properties

$file  : string
$resource  : string

Methods

__construct()  : mixed
Query constructor.
query()  : string|array<string|int, string>|null
Get query
setVariables()  : string
set Variables in query adding value
formatQueryRemoveBrokenLine()  : string|array<string|int, string>|null
Format query to remove LF (line feed \n) and CR (carriege return \r)

Constants

DIR

public mixed DIR = "queries/"

Properties

$file

protected string $file

$resource

protected string $resource

Methods

__construct()

Query constructor.

public __construct(string $resource) : mixed
Parameters
$resource : string

query()

Get query

public query(string $file) : string|array<string|int, string>|null
Parameters
$file : string
Return values
string|array<string|int, string>|null

setVariables()

set Variables in query adding value

public setVariables(string|array<string|int, mixed> $variables, string|array<string|int, mixed> $value, string $graphQuery) : string
Parameters
$variables : string|array<string|int, mixed>
$value : string|array<string|int, mixed>
$graphQuery : string
Return values
string

formatQueryRemoveBrokenLine()

Format query to remove LF (line feed \n) and CR (carriege return \r)

private formatQueryRemoveBrokenLine(string $query) : string|array<string|int, string>|null
Parameters
$query : string
Return values
string|array<string|int, string>|null

        
On this page

Search results