protected function save($data)
    {
        $currentStep = $this->getCurrentStep();
        if (is_array($data)) {
            foreach ($data as $field => $value) {
                if (in_array($field, $this->config()->get('ignored_fields'))) {
                    unset($data[$field]);
                }
            }
            $currentStep->saveData($data);
        }
        return;
    }
protected function save($data)
    {
        $currentStep = $this->getCurrentStep();
        if (is_array($data)) {
            foreach ($data as $field => $value) {
                if (in_array($field, $this->config()->get('ignored_fields'))) {
                    unset($data[$field]);
                }
            }
            $currentStep->saveData($data);
        }
        return;
    }
protected function save ( $ data ) { $ currentStep = $ this -> getCurrentStep ( ) ; if ( is_array ( $ data ) ) { foreach ( $ data as $ field => $ value ) { if ( in_array ( $ field , $ this -> config ( ) -> get ( 'ignored_fields' ) ) ) { unset ( $ data [ $ field ] ) ; } } $ currentStep -> saveData ( $ data ) ; } return ; }
Save the raw data given back from the form into session.

Take the submitted form data for the current step, removing
any key => value pairs that shouldn't be saved, then saves
the data into the session.

@param array $data An array of data to save
Save the raw data given back from the form into session .