![]() |
TYPO3
7.6
|
Public Member Functions | |
traverseFlexFormXMLData ($table, $field, $row, $callBackObj, $callBackMethod_value) | |
traverseFlexFormXMLData_recurse ($dataStruct, $editData, &$PA, $path= '') | |
getAvailableLanguages () | |
cleanFlexFormXML ($table, $field, $row) | |
cleanFlexFormXML_callBackFunction ($dsArr, $data, $PA, $path, $pObj) | |
& | getArrayValueByPath ($pathArray, &$array) |
setArrayValueByPath ($pathArray, &$array, $value) | |
flexArray2Xml ($array, $addPrologue=false) | |
Public Attributes | |
$convertCharset = false | |
$reNumberIndexesOfSectionData = false | |
$traverseFlexFormXMLData_DS = array() | |
$traverseFlexFormXMLData_Data = array() | |
$flexArray2Xml_options | |
$callBackObj = null | |
$cleanFlexFormXML = array() | |
Protected Member Functions | |
executeCallBackMethod ($methodName, array $parameterArray) | |
Contains functions for manipulating flex form data
Definition at line 23 of file FlexFormTools.php.
cleanFlexFormXML | ( | $table, | |
$field, | |||
$row | |||
) |
Cleaning up FlexForm XML to hold only the values it may according to its Data Structure. Also the order of tags will follow that of the data structure. BE CAREFUL: DO not clean records in workspaces unless IN the workspace! The Data Structure might resolve falsely on a workspace record when cleaned from Live workspace.
string | $table | Table name |
string | $field | Field name of the flex form field in which the XML is found that should be cleaned. |
array | $row | The record |
Definition at line 283 of file FlexFormTools.php.
References FlexFormTools\flexArray2Xml(), and GeneralUtility\makeInstance().
Referenced by FlexFormTools\cleanFlexFormXML_callBackFunction().
cleanFlexFormXML_callBackFunction | ( | $dsArr, | |
$data, | |||
$PA, | |||
$path, | |||
$pObj | |||
) |
Call back function for class Basically just setting the value in a new array (thus cleaning because only values that are valid are visited!)
array | $dsArr | Data structure for the current value |
mixed | $data | Current value |
array | $PA | Additional configuration used in calling function |
string | $path | Path of value in DS structure |
FlexFormTools | $pObj | caller |
Definition at line 305 of file FlexFormTools.php.
References FlexFormTools\cleanFlexFormXML().
|
protected |
Execute method on callback object
string | $methodName | Method name to call |
array | $parameterArray | Parameters |
Definition at line 220 of file FlexFormTools.php.
Referenced by FlexFormTools\traverseFlexFormXMLData_recurse().
flexArray2Xml | ( | $array, | |
$addPrologue = false |
|||
) |
Convert FlexForm data array to XML
array | $array | Array to output in <T3FlexForms> XML |
bool | $addPrologue | If set, the XML prologue is returned as well. |
Definition at line 375 of file FlexFormTools.php.
References $GLOBALS, and GeneralUtility\array2xml().
Referenced by FlexFormTools\cleanFlexFormXML().
& getArrayValueByPath | ( | $pathArray, | |
& | $array | ||
) |
Get a value from a multi-dimensional array by giving a path "../../.." pointing to the element
string | $pathArray | The path pointing to the value field, eg. test/2/title to access $array['test'][2]['title'] |
array | $array | Array to get value from. Passed by reference so the value returned can be used to change the value in the array! |
Definition at line 323 of file FlexFormTools.php.
getAvailableLanguages | ( | ) |
Returns an array of available languages to use for FlexForm operations
Definition at line 231 of file FlexFormTools.php.
References $GLOBALS, BackendUtility\deleteClause(), elseif, BackendUtility\getRecord(), and GeneralUtility\logDeprecatedFunction().
setArrayValueByPath | ( | $pathArray, | |
& | $array, | ||
$value | |||
) |
Set a value in a multi-dimensional array by giving a path "../../.." pointing to the element
string | $pathArray | The path pointing to the value field, eg. test/2/title to access $array['test'][2]['title'] |
array | $array | Array to set value in. Passed by reference so the value returned can be used to change the value in the array! |
mixed | $value | Value to set |
Definition at line 348 of file FlexFormTools.php.
traverseFlexFormXMLData | ( | $table, | |
$field, | |||
$row, | |||
$callBackObj, | |||
$callBackMethod_value | |||
) |
Handler for Flex Forms
string | $table | The table name of the record |
string | $field | The field name of the flexform field to work on |
array | $row | The record data array |
object | $callBackObj | Object in which the call back function is located |
string | $callBackMethod_value | Method name of call back function in object for values |
Definition at line 97 of file FlexFormTools.php.
References FlexFormTools\$callBackObj, $GLOBALS, BackendUtility\getFlexFormDS(), GeneralUtility\resolveSheetDefInDS(), FlexFormTools\traverseFlexFormXMLData_recurse(), GeneralUtility\xml2array(), and GeneralUtility\xmlGetHeaderAttribs().
traverseFlexFormXMLData_recurse | ( | $dataStruct, | |
$editData, | |||
& | $PA, | ||
$path = '' |
|||
) |
Recursively traversing flexform data according to data structure and element data
array | $dataStruct | (Part of) data structure array that applies to the sub section of the flexform data we are processing |
array | $editData | (Part of) edit data array, reflecting current part of data structure |
array | $PA | Additional parameters passed. |
string | $path | Telling the "path" to the element in the flexform XML |
Definition at line 161 of file FlexFormTools.php.
References elseif, and FlexFormTools\executeCallBackMethod().
Referenced by FlexFormTools\traverseFlexFormXMLData().
$callBackObj = null |
Definition at line 78 of file FlexFormTools.php.
Referenced by FlexFormTools\traverseFlexFormXMLData().
$cleanFlexFormXML = array() |
Definition at line 85 of file FlexFormTools.php.
$convertCharset = false |
Definition at line 30 of file FlexFormTools.php.
$flexArray2Xml_options |
Definition at line 59 of file FlexFormTools.php.
$reNumberIndexesOfSectionData = false |
Definition at line 37 of file FlexFormTools.php.
$traverseFlexFormXMLData_Data = array() |
Definition at line 51 of file FlexFormTools.php.
$traverseFlexFormXMLData_DS = array() |
Definition at line 44 of file FlexFormTools.php.