public function updateFromFormData($data)
    {
        $cmsFields = $this->getCMSFields();

        foreach ($data as $field => $datum) {
            $field = $cmsFields->dataFieldByName($field);

            if (!$field) {
                continue;
            }

            $field->setSubmittedValue($datum);
            $field->saveInto($this);
        }
    }
public function updateFromFormData($data)
    {
        $cmsFields = $this->getCMSFields();

        foreach ($data as $field => $datum) {
            $field = $cmsFields->dataFieldByName($field);

            if (!$field) {
                continue;
            }

            $field->setSubmittedValue($datum);
            $field->saveInto($this);
        }
    }
public function updateFromFormData ( $ data ) { $ cmsFields = $ this -> getCMSFields ( ) ; foreach ( $ data as $ field => $ datum ) { $ field = $ cmsFields -> dataFieldByName ( $ field ) ; if ( ! $ field ) { continue ; } $ field -> setSubmittedValue ( $ datum ) ; $ field -> saveInto ( $ this ) ; } }
Given form data (wit

@param $data
Given form data ( wit