/** * Return value from somewhere inside a FlexForm structure * * @param array FlexForm data * @param string Field name to extract. Can be given like "test/el/2/test/el/field_templateObject" where each part will dig a level deeper in the FlexForm data. * @param string Sheet pointer, eg. "sDEF" * @param string Language pointer, eg. "lDEF" * @param string Value pointer, eg. "vDEF" * @return string The content. */ public static function pi_getFFvalue($T3FlexForm_array, $fieldName, $sheet = 'sDEF', $lang = 'lDEF', $value = 'vDEF') { $sheetArray = ''; if (is_array($T3FlexForm_array)) { $sheetArray = $T3FlexForm_array['data'][$sheet][$lang]; } else { $sheetArray = ''; } if (is_array($sheetArray)) { return Tx_Formhandler_StaticFuncs::pi_getFFvalueFromSheetArray($sheetArray, t3lib_div::trimExplode('/', $fieldName), $value); } }