Cheetah
Public Member Functions | Public Attributes | List of all members
ChBaseFormView Class Reference
Inheritance diagram for ChBaseFormView:
ChWsbForm ChTemplFormView ChEventsFormSearch ChGroupsFormSearch ChOAuthFormAdd ChSitesFormAdd ChSitesFormSearch ChStoreFormSearch ChWsbAdmFormDnsblAdd ChWsbAdmFormDnsblRecheck ChWsbAdmFormSitemap ChWsbFormMedia ChWsbTwigFormBroadcast ChWsbTwigFormInviter

Public Member Functions

 __construct ($aInfo)
 
 getCode ()
 
 genForm ()
 
 genTable ()
 
 genRow (&$aInput)
 
 genRowStandard (&$aInput)
 
 genRowSelectBox (&$aInput)
 
 genRowHeaders (&$aInput)
 
 genRowBlockHeader (&$aInput)
 
 genBlockEnd ()
 
 genWrapperInput ($aInput, $sContent)
 
 genInput (&$aInput)
 
 getInputId (&$aInput)
 
 genInputStandard (&$aInput)
 
 genInputButton (&$aInput)
 
 genInputTextarea (&$aInput)
 
 addHtmlEditor ($iViewMode, &$aInput)
 
 genInputSelect (&$aInput)
 
 genInputSelectBox (&$aInput, $sInfo='', $sError='')
 
 genInputSelectMultiple (&$aInput)
 
 genInputCheckboxSet (&$aInput)
 
 genInputRadioSet (&$aInput)
 
 genInputCaptcha (&$aInput)
 
 genLabel (&$aInput)
 
 convertArray2Attrs ($a)
 
 genInfoIcon ($sInfo)
 
 genErrorIcon ( $sError='')
 
 getOpenTbody ($aAttrsAdd=false)
 
 getCloseTbody ()
 
 getInput ($sType, $sAttrs, $sContent='')
 
 addCssJs ($isDateControl=false, $isDateTimeControl=false)
 
- Public Member Functions inherited from ChWsbForm
 initChecker ($aValues=array())
 
 insert ($aValsToAdd=array())
 
 update ($val, $aValsToAdd=array())
 
 generateUri ()
 
 getCleanValue ($sName)
 
 isSubmitted ()
 
 isValid ()
 
 isSubmittedAndValid ()
 
 genCsrfToken ($bReturn=false)
 
 getCsrfTokenTime ()
 

Public Attributes

 $bEnableErrorIcon = true
 
 $sCode
 
 $_sCodeAdd = ''
 
 $_isTbodyOpened = false
 
 $_isDateControl = false
 
 $_isDateTimeControl = false
 
- Public Attributes inherited from ChWsbForm
 $_isValid = true
 
 $_sCheckerHelper
 
 $aFormAttrs
 
 $aTableAttrs
 
 $aInputs
 
 $aParams
 
 $id
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbForm
static getSubmittedValue ($sKey, $sMethod)
 
static getCsrfToken ()
 

Detailed Description

This work, "Cheetah - https://www.cheetahwsb.com", is a derivative of "Dolphin Pro V7.4.2" by BoonEx Pty Limited - https://www.boonex.com/, used under CC-BY. "Cheetah" is licensed under CC-BY by Dean J. Bassett Jr. CC-BY License - http://creativecommons.org/licenses/by/3.0/

Definition at line 10 of file ChBaseFormView.php.

Constructor & Destructor Documentation

◆ __construct()

ChBaseFormView::__construct (   $aInfo)

Constructor

Parameters
array$aInfoForm contents

$aInfo['params'] = array( 'remove_form' => true|false, );

Returns
ChBaseFormView

Reimplemented from ChWsbForm.

Reimplemented in ChOAuthFormAdd, ChSitesFormSearch, ChTemplFormView, ChTemplFormView, ChTemplFormView, and ChWsbFormMedia.

Definition at line 46 of file ChBaseFormView.php.

Member Function Documentation

◆ addCssJs()

ChBaseFormView::addCssJs (   $isDateControl = false,
  $isDateTimeControl = false 
)

Definition at line 1073 of file ChBaseFormView.php.

◆ addHtmlEditor()

ChBaseFormView::addHtmlEditor (   $iViewMode,
$aInput 
)

Definition at line 627 of file ChBaseFormView.php.

◆ convertArray2Attrs()

ChBaseFormView::convertArray2Attrs (   $a)

Convert array to attributes string

$a = array('name' => 'test', 'value' => 5); $s = $this->convertArray2Attrs($a); echo $s;

Output: name="test" value="5"

Parameters
array$a
Returns
string

Definition at line 966 of file ChBaseFormView.php.

◆ genBlockEnd()

ChBaseFormView::genBlockEnd ( )

Definition at line 344 of file ChBaseFormView.php.

◆ genErrorIcon()

ChBaseFormView::genErrorIcon (   $sError = '')

Definition at line 993 of file ChBaseFormView.php.

◆ genForm()

ChBaseFormView::genForm ( )

Generate the whole form

Returns
string

Definition at line 78 of file ChBaseFormView.php.

◆ genInfoIcon()

ChBaseFormView::genInfoIcon (   $sInfo)

Definition at line 985 of file ChBaseFormView.php.

◆ genInput()

ChBaseFormView::genInput ( $aInput)

Generate HTML Input Element

Parameters
array$aInput
Returns
string Output HTML Code

Definition at line 366 of file ChBaseFormView.php.

◆ genInputButton()

ChBaseFormView::genInputButton ( $aInput)

Generate standard Button/Reset/Submit Element

Parameters
array$aInput
Returns
string

Definition at line 571 of file ChBaseFormView.php.

◆ genInputCaptcha()

ChBaseFormView::genInputCaptcha ( $aInput)

Definition at line 912 of file ChBaseFormView.php.

◆ genInputCheckboxSet()

ChBaseFormView::genInputCheckboxSet ( $aInput)

Generate Checkbox Set Element

Parameters
array$aInput
Returns
string

Definition at line 815 of file ChBaseFormView.php.

◆ genInputRadioSet()

ChBaseFormView::genInputRadioSet ( $aInput)

Generate Radiobuttons Set Element

Parameters
array$aInput
Returns
string

Definition at line 866 of file ChBaseFormView.php.

◆ genInputSelect()

ChBaseFormView::genInputSelect ( $aInput)

Generate Select Element

Parameters
array$aInput
Returns
string

Definition at line 651 of file ChBaseFormView.php.

◆ genInputSelectBox()

ChBaseFormView::genInputSelectBox ( $aInput,
  $sInfo = '',
  $sError = '' 
)

Generate Select Box Element

Parameters
array$aInput
Returns
string

Definition at line 697 of file ChBaseFormView.php.

◆ genInputSelectMultiple()

ChBaseFormView::genInputSelectMultiple ( $aInput)

Generate Multiple Select Element

Parameters
array$aInput
Returns
string

Definition at line 771 of file ChBaseFormView.php.

◆ genInputStandard()

ChBaseFormView::genInputStandard ( $aInput)

Generate standard Input Element

Parameters
array$aInput
Returns
string

Definition at line 516 of file ChBaseFormView.php.

◆ genInputTextarea()

ChBaseFormView::genInputTextarea ( $aInput)

Generate Textarea Element

Parameters
array$aInput
Returns
string

Definition at line 603 of file ChBaseFormView.php.

◆ genLabel()

ChBaseFormView::genLabel ( $aInput)

Generate Label Element

Parameters
string$sLabelText of the Label
string$sInputIDDependant Input Element ID
Returns
string HTML code

Definition at line 940 of file ChBaseFormView.php.

◆ genRow()

ChBaseFormView::genRow ( $aInput)

Generate single Table Row

Parameters
array$aInput
Returns
string

Definition at line 131 of file ChBaseFormView.php.

◆ genRowBlockHeader()

ChBaseFormView::genRowBlockHeader ( $aInput)

Generate Block Headers row

Parameters
array$aInput
Returns
string

Definition at line 300 of file ChBaseFormView.php.

◆ genRowHeaders()

ChBaseFormView::genRowHeaders ( $aInput)

Generate Table Headers row

Parameters
array$aInput
Returns
string

Definition at line 281 of file ChBaseFormView.php.

◆ genRowSelectBox()

ChBaseFormView::genRowSelectBox ( $aInput)

Generate select_box row

Parameters
array$aInput
Returns
string

Definition at line 240 of file ChBaseFormView.php.

◆ genRowStandard()

ChBaseFormView::genRowStandard ( $aInput)

Generate standard row

Parameters
array$aInput
Returns
string

Definition at line 169 of file ChBaseFormView.php.

◆ genTable()

ChBaseFormView::genTable ( )

Generate Table HTML code

Returns
string

Definition at line 96 of file ChBaseFormView.php.

◆ genWrapperInput()

ChBaseFormView::genWrapperInput (   $aInput,
  $sContent 
)

Definition at line 349 of file ChBaseFormView.php.

◆ getCloseTbody()

ChBaseFormView::getCloseTbody ( )

Definition at line 1023 of file ChBaseFormView.php.

◆ getCode()

ChBaseFormView::getCode ( )

Return Form code

Returns
string

Definition at line 56 of file ChBaseFormView.php.

◆ getInput()

ChBaseFormView::getInput (   $sType,
  $sAttrs,
  $sContent = '' 
)

Definition at line 1033 of file ChBaseFormView.php.

◆ getInputId()

ChBaseFormView::getInputId ( $aInput)

Generate new Input Element id

Parameters
array$aInput
Returns
string

Definition at line 478 of file ChBaseFormView.php.

◆ getOpenTbody()

ChBaseFormView::getOpenTbody (   $aAttrsAdd = false)

Definition at line 1011 of file ChBaseFormView.php.

Member Data Documentation

◆ $_isDateControl

ChBaseFormView::$_isDateControl = false

Definition at line 32 of file ChBaseFormView.php.

◆ $_isDateTimeControl

ChBaseFormView::$_isDateTimeControl = false

Definition at line 33 of file ChBaseFormView.php.

◆ $_isTbodyOpened

ChBaseFormView::$_isTbodyOpened = false

Definition at line 30 of file ChBaseFormView.php.

◆ $_sCodeAdd

ChBaseFormView::$_sCodeAdd = ''

Definition at line 28 of file ChBaseFormView.php.

◆ $bEnableErrorIcon

ChBaseFormView::$bEnableErrorIcon = true

Definition at line 12 of file ChBaseFormView.php.

◆ $sCode

ChBaseFormView::$sCode

Definition at line 19 of file ChBaseFormView.php.


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