public function moveFlexFormDataToConf()
    {
        // don't move this to init
        $this->pi_initPIflexForm();

        $piFlexForm = $this->cObj->data['pi_flexform'];
        if (is_array($piFlexForm['data'])) {
            foreach ($piFlexForm['data'] as $sheetKey => $sheet) {
                foreach ($sheet as $lang) {
                    foreach ($lang as $key => $value) {
                        // delete current conf value from conf-array
                        // when FF-Value differs from TS-Conf and FF-Value is not empty
                        $value = $this->fetchConfigurationValue($key, $sheetKey);
                        if ($this->conf[$key] != $value && !empty($value)) {
                            unset($this->conf[$key]);
                            $this->conf[$key] = $this->fetchConfigurationValue($key, $sheetKey);
                        }
                    }
                }
            }
        }
    }
public function moveFlexFormDataToConf()
    {
        // don't move this to init
        $this->pi_initPIflexForm();

        $piFlexForm = $this->cObj->data['pi_flexform'];
        if (is_array($piFlexForm['data'])) {
            foreach ($piFlexForm['data'] as $sheetKey => $sheet) {
                foreach ($sheet as $lang) {
                    foreach ($lang as $key => $value) {
                        // delete current conf value from conf-array
                        // when FF-Value differs from TS-Conf and FF-Value is not empty
                        $value = $this->fetchConfigurationValue($key, $sheetKey);
                        if ($this->conf[$key] != $value && !empty($value)) {
                            unset($this->conf[$key]);
                            $this->conf[$key] = $this->fetchConfigurationValue($key, $sheetKey);
                        }
                    }
                }
            }
        }
    }
public function moveFlexFormDataToConf ( ) { // don't move this to init $ this -> pi_initPIflexForm ( ) ; $ piFlexForm = $ this -> cObj -> data [ 'pi_flexform' ] ; if ( is_array ( $ piFlexForm [ 'data' ] ) ) { foreach ( $ piFlexForm [ 'data' ] as $ sheetKey => $ sheet ) { foreach ( $ sheet as $ lang ) { foreach ( $ lang as $ key => $ value ) { // delete current conf value from conf-array // when FF-Value differs from TS-Conf and FF-Value is not empty $ value = $ this -> fetchConfigurationValue ( $ key , $ sheetKey ) ; if ( $ this -> conf [ $ key ] != $ value && ! empty ( $ value ) ) { unset ( $ this -> conf [ $ key ] ) ; $ this -> conf [ $ key ] = $ this -> fetchConfigurationValue ( $ key , $ sheetKey ) ; } } } } } }
Move all FlexForm data of current record to conf array
Move all FlexForm data of current record to conf array