Properties

$store

$store : \qfq\Store

Type

\qfq\Store — instantiated class

$db

$db : \qfq\Database

Type

\qfq\Database — instantiated class

$eval

$eval : \qfq\Evaluate

Type

\qfq\Evaluate — instantiated class

$formSpec

$formSpec : 

Type

$feSpecAction

$feSpecAction : 

Type

$feSpecNative

$feSpecNative : 

Type

$t3data

$t3data : array

Type

array

$phpUnit

$phpUnit : 

Type

Methods

__construct()

__construct(array  $t3data = array(),   $phpUnit = false) 

Construct the Form Class and Store too. This is the base initialization moment.

As a result of instantiating of Form, the class Store will initially called the first time and therefore instantiated automatically. Store might throw an exception, in case the URL-passed SIP is invalid.

Parameters

array $t3data
$phpUnit

getForwardMode()

getForwardMode(  $forwardPage) : mixed

Returns the defined forwardMode and set, if necessary, $forwardPage

Parameters

$forwardPage

Returns

mixed

process()

process() : string

Main entrypoint for display content: form or report

Returns

string

saveForm()

saveForm() : string

Save the current form.

Returns

string

updateForm()

updateForm() : array

Update FormElements and form values. Receives the current form values via POST.

Throws

\qfq\CodeException

Returns

array

delete()

delete() 

Delete a record (tablename and recordid are given) or process a 'delete form'

Throws

\qfq\CodeException
\qfq\DbException
\qfq\UserFormException

doForm()

doForm(  $mode) : string

Process form. There

Parameters

$mode

Throws

\qfq\CodeException
\qfq\UserFormException

Returns

string

loadFormSpecification()

loadFormSpecification(string  $mode, string  $foundInStore = '') : boolean|string

Load form. Evaluates form. Load FormElements.

After processing: Loaded Form is in $this->formSpec Loaded 'action' FormElements are in $this->feSpecAction Loaded 'native' FormElements are in $this->feSpecNative

Parameters

string $mode

FORM_LOAD|FORM_SAVE|FORM_UPDATE

string $foundInStore

Throws

\qfq\CodeException
\qfq\DbException
\qfq\UserFormException

Returns

boolean|string —

if found the formName, else 'false'.

getFormName()

getFormName(string  $mode, string  $foundInStore = '') : array|boolean|mixed|null|string

Get the formName from STORE_TYPO3 (bodytext), STORE_SIP or by STORE_CLIENT (URL).

FORM_LOAD: Specified in T3 body text with form= Returned Store:Typo3 Specified in T3 body text with form={{form}} ':FSRD' Returned Store:SIP Specified in T3 body text with form={{form:C:ALNUMX}} Returned Store:Client Specified in T3 body text with form={{SELECT registrationFormName FROM Conference WHERE id={{conferenceId:S0}} }} Specified in T3 body text with form={{SELECT registrationFormName FROM Conference WHERE id={{conferenceId:C0:DIGIT}} }} Specified in SIP

FORM_SAVE: Specified in SIP

Parameters

string $mode

FORM_LOAD|FORM_SAVE|FORM_UPDATE

string $foundInStore

Throws

\qfq\CodeException
\qfq\UserFormException

Returns

array|boolean|mixed|null|string —

Formname (Form.name) or FALSE, if no formname found.

doReport()

doReport() : string

Process the SQL Queries from bodytext. Return the output.

Returns

string