db
FormDefinition Class Reference

Public Member Functions

 __construct ($param=array())
 
 getForms ()
 
 addForm ($index, Form $form, $viewKey=NULL)
 
 addForms ($index, array $form, $viewKey=NULL)
 
 getForm ($index)
 
 getFormWithViewKey ($index)
 
 setForms ($forms)
 
 removeForm ($index)
 

Protected Attributes

 $forms = []
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $param = array())

Member Function Documentation

◆ addForm()

addForm (   $index,
Form  $form,
  $viewKey = NULL 
)

Prida formular $form do seznamu pod klicem $index
Pokud je treba ve view zpristupnit pod jinym klicem nez defaultnim ('form'.ucfirst($index)) budiz zadan do $viewKey

Parameters
mixed$index
\IZON\Forms\Form$form
string$viewKeypod jakym klicem bude formular dostupny ve view

◆ addForms()

addForms (   $index,
array  $form,
  $viewKey = NULL 
)

Stejne jako addForm, jen umozni pridat pod jeden klic vice formularu

Parameters
type$index
array$form
type$viewKey

◆ getForm()

getForm (   $index)
Parameters
mixed$index
Returns
Form

◆ getForms()

getForms ( )

◆ getFormWithViewKey()

getFormWithViewKey (   $index)

Vrati formular s klicem, pod kterym ma byt dostupny ve view
Pokud nebude zadany, vrati se jako klic index, pod kterym je ulozen

Parameters
string$index
Returns
array

◆ removeForm()

removeForm (   $index)

Odstrani jiz zaregistrovany formular

Parameters
string$index

◆ setForms()

setForms (   $forms)

Member Data Documentation

◆ $forms

$forms = []
protected

The documentation for this class was generated from the following file: