\qfq Evaluate

Class Evaluate

Summary

Methods
Properties
Constants
__construct()
parseArray()
parse()
substitute()
getDebug()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$store
$db
$startDelimiter
$startDelimiterLength
$endDelimiter
$endDelimiterLength
$sqlKeywords
N/A

Properties

$store

$store : 

Type

$db

$db : 

Type

$startDelimiter

$startDelimiter : 

Type

$startDelimiterLength

$startDelimiterLength : 

Type

$endDelimiter

$endDelimiter : 

Type

$endDelimiterLength

$endDelimiterLength : 

Type

$sqlKeywords

$sqlKeywords : 

Type

Methods

__construct()

__construct(\qfq\Store  $store, \qfq\Database  $db,   $startDelimiter = '{{',   $endDelimiter = '}}') 

Parameters

\qfq\Store $store
\qfq\Database $db
$startDelimiter
$endDelimiter

parseArray()

parseArray(  $tokenArray,   $debugStack = array()) : mixed

Evaluate a whole array or a array of arrays.

Parameters

$tokenArray
$debugStack

Returns

mixed

parse()

parse(  $line, integer  $recursion,   $debugStack = array(),   $foundInStore = '') : array|mixed|null|string

Recursive evaluation of 'line'. Constant string, Variables or SQL Query or all of them.

Token to replace have to be enclosed by '{{' and '}}'

Parameters

$line
integer $recursion
$debugStack
$foundInStore

Throws

\qfq\UserFormException

Returns

array|mixed|null|string

substitute()

substitute(  $token, string  $foundInStore = '') : array|mixed|null|string

Tries to substitute $token.

Token might be a) a SQL statement to fire b) fetch from a store. Syntax: 'form', 'form:C', 'form:SC0', 'form:S:ALNUMX' The token have to be without Delimiter '{{' / '}}' If neither a) or b) match, return the token itself, surrounded by single ticks, to emphase that substition failed.

Parameters

$token
string $foundInStore

Throws

\qfq\CodeException
\qfq\DbException

Returns

array|mixed|null|string

getDebug()

getDebug()