TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Form\Element\SuggestElement Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Element\SuggestElement:
t3lib_TCEforms_Suggest

Public Member Functions

 init ($tceForms)
 
 renderSuggestSelector ($fieldname, $table, $field, array $row, array $config)
 
 processAjaxRequest ($params, &$ajaxObj)
 

Public Attributes

 $suggestCount = 0
 
 $cssClass = 'typo3-TCEforms-suggest'
 
 $TCEformsObj
 

Protected Member Functions

 getNestedDsFieldConfig (array $dataStructure, $fieldName)
 

Detailed Description

TCEforms wizard for rendering an AJAX selector for records

Author
Andreas Wolf andre.nosp@m.as.w.nosp@m.olf@i.nosp@m.kt-w.nosp@m.erk.d.nosp@m.e
Benjamin Mack benni.nosp@m.@typ.nosp@m.o3.or.nosp@m.g

Definition at line 27 of file SuggestElement.php.

Member Function Documentation

◆ getNestedDsFieldConfig()

TYPO3\CMS\Backend\Form\Element\SuggestElement::getNestedDsFieldConfig ( array  $dataStructure,
  $fieldName 
)
protected

Search a data structure array recursively – including within nested (repeating) elements – for a particular field config.

Parameters
array$dataStructureThe data structure
string$fieldNameThe field name
Returns
array

Definition at line 133 of file SuggestElement.php.

Referenced by TYPO3\CMS\Backend\Form\Element\SuggestElement\processAjaxRequest().

◆ init()

TYPO3\CMS\Backend\Form\Element\SuggestElement::init (   $tceForms)

Initialize an instance of SuggestElement

Parameters
\TYPO3\CMS\Backend\Form\FormEngine$tceFormsReference to an TCEforms instance
Returns
void

Definition at line 50 of file SuggestElement.php.

◆ processAjaxRequest()

TYPO3\CMS\Backend\Form\Element\SuggestElement::processAjaxRequest (   $params,
$ajaxObj 
)

◆ renderSuggestSelector()

TYPO3\CMS\Backend\Form\Element\SuggestElement::renderSuggestSelector (   $fieldname,
  $table,
  $field,
array  $row,
array  $config 
)

Renders an ajax-enabled text field. Also adds required JS

Parameters
string$fieldnameThe fieldname in the form
string$tableThe table we render this selector for
string$fieldThe field we render this selector for
array$rowThe row which is currently edited
array$configThe TSconfig of the field
Returns
string The HTML code for the selector

Definition at line 64 of file SuggestElement.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Utility\GeneralUtility\strtolower().

Member Data Documentation

◆ $cssClass

TYPO3\CMS\Backend\Form\Element\SuggestElement::$cssClass = 'typo3-TCEforms-suggest'

Definition at line 37 of file SuggestElement.php.

◆ $suggestCount

TYPO3\CMS\Backend\Form\Element\SuggestElement::$suggestCount = 0

Definition at line 32 of file SuggestElement.php.

◆ $TCEformsObj

TYPO3\CMS\Backend\Form\Element\SuggestElement::$TCEformsObj

Definition at line 42 of file SuggestElement.php.