[ Index ] |
|
Code source de Typo3 4.1.3 |
[Code source] [Imprimer] [Statistiques]
Contains functions for manipulating flex form data $Id: class.t3lib_flexformtools.php 1839 2006-12-01 14:55:42Z typo3 $
Author: | Kasper Skaarhoj <kasperYYYY@typo3.com> |
Poids: | 461 lignes (15 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
t3lib_flexformtools:: (8 méthodes):
traverseFlexFormXMLData()
traverseFlexFormXMLData_recurse()
getAvailableLanguages()
cleanFlexFormXML()
cleanFlexFormXML_callBackFunction()
getArrayValueByPath()
setArrayValueByPath()
flexArray2Xml()
Classe: t3lib_flexformtools - X-Ref
Contains functions for manipulating flex form datatraverseFlexFormXMLData($table,$field,$row,&$callBackObj,$callBackMethod_value) X-Ref |
Handler for Flex Forms param: string The table name of the record param: string The field name of the flexform field to work on param: array The record data array param: object Object (passed by reference) in which the call back function is located param: string Method name of call back function in object for values return: boolean If true, error happened (error string returned) |
traverseFlexFormXMLData_recurse($dataStruct,$editData,&$PA,$path='') X-Ref |
Recursively traversing flexform data according to data structure and element data param: array (Part of) data structure array that applies to the sub section of the flexform data we are processing param: array (Part of) edit data array, reflecting current part of data structure param: array Additional parameters passed. param: string Telling the "path" to the element in the flexform XML return: array |
getAvailableLanguages() X-Ref |
Returns an array of available languages to use for FlexForm operations return: array |
cleanFlexFormXML($table,$field,$row) X-Ref |
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. param: string Table name param: string Field name of the flex form field in which the XML is found that should be cleaned. param: array The record return: string Clean XML from FlexForm field |
cleanFlexFormXML_callBackFunction($dsArr, $data, $PA, $path, &$pObj) X-Ref |
Call back function for t3lib_flexformtools class Basically just setting the value in a new array (thus cleaning because only values that are valid are visited!) param: array Data structure for the current value param: mixed Current value param: array Additional configuration used in calling function param: string Path of value in DS structure param: object Object reference to caller return: void |
getArrayValueByPath($pathArray,&$array) X-Ref |
Get a value from a multi-dimensional array by giving a path "../../.." pointing to the element param: string The path pointing to the value field, eg. test/2/title to access $array['test'][2]['title'] param: array Array to get value from. Passed by reference so the value returned can be used to change the value in the array! return: mixed Value returned |
setArrayValueByPath($pathArray,&$array,$value) X-Ref |
Set a value in a multi-dimensional array by giving a path "../../.." pointing to the element param: string The path pointing to the value field, eg. test/2/title to access $array['test'][2]['title'] param: array Array to set value in. Passed by reference so the value returned can be used to change the value in the array! param: mixed Value to set return: mixed Value returned |
flexArray2Xml($array, $addPrologue=FALSE) X-Ref |
Convert FlexForm data array to XML param: array Array to output in <T3FlexForms> XML param: boolean If set, the XML prologue is returned as well. return: string XML content. |
Généré le : Sun Nov 25 17:13:16 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |