public function afterImport(\MUtil_Task_TaskBatch $batch, \MUtil_Form_Element_Html $element)
    {
        $text = parent::afterImport($batch, $element);

        $data = $this->formData;

        // Remove unuseful data
        unset($data['button_spacer'], $data['current_step'], $data[$this->csrfId]);

        // Add useful data
        $data['localfile']        = basename($this->_session->localfile);
        $data['extension']        = $this->_session->extension;

        $data['failureDirectory'] = '...' . substr($this->importer->getFailureDirectory(), -30);
        $data['longtermFilename'] = basename($this->importer->getLongtermFilename());
        $data['successDirectory'] = '...' . substr($this->importer->getSuccessDirectory(), -30);
        $data['tempDirectory']    = '...' . substr($this->tempDirectory, -30);

        $data['importTranslator'] = get_class($this->importer->getImportTranslator());
        $data['sourceModelClass'] = get_class($this->sourceModel);
        $data['targetModelClass'] = get_class($this->targetModel);

        ksort($data);

        $this->accesslog->logChange($this->request, null, array_filter($data));
    }
public function afterImport(\MUtil_Task_TaskBatch $batch, \MUtil_Form_Element_Html $element)
    {
        $text = parent::afterImport($batch, $element);

        $data = $this->formData;

        // Remove unuseful data
        unset($data['button_spacer'], $data['current_step'], $data[$this->csrfId]);

        // Add useful data
        $data['localfile']        = basename($this->_session->localfile);
        $data['extension']        = $this->_session->extension;

        $data['failureDirectory'] = '...' . substr($this->importer->getFailureDirectory(), -30);
        $data['longtermFilename'] = basename($this->importer->getLongtermFilename());
        $data['successDirectory'] = '...' . substr($this->importer->getSuccessDirectory(), -30);
        $data['tempDirectory']    = '...' . substr($this->tempDirectory, -30);

        $data['importTranslator'] = get_class($this->importer->getImportTranslator());
        $data['sourceModelClass'] = get_class($this->sourceModel);
        $data['targetModelClass'] = get_class($this->targetModel);

        ksort($data);

        $this->accesslog->logChange($this->request, null, array_filter($data));
    }
public function afterImport ( \ MUtil_Task_TaskBatch $ batch , \ MUtil_Form_Element_Html $ element ) { $ text = parent :: afterImport ( $ batch , $ element ) ; $ data = $ this -> formData ; // Remove unuseful data unset ( $ data [ 'button_spacer' ] , $ data [ 'current_step' ] , $ data [ $ this -> csrfId ] ) ; // Add useful data $ data [ 'localfile' ] = basename ( $ this -> _session -> localfile ) ; $ data [ 'extension' ] = $ this -> _session -> extension ; $ data [ 'failureDirectory' ] = '...' . substr ( $ this -> importer -> getFailureDirectory ( ) , - 30 ) ; $ data [ 'longtermFilename' ] = basename ( $ this -> importer -> getLongtermFilename ( ) ) ; $ data [ 'successDirectory' ] = '...' . substr ( $ this -> importer -> getSuccessDirectory ( ) , - 30 ) ; $ data [ 'tempDirectory' ] = '...' . substr ( $ this -> tempDirectory , - 30 ) ; $ data [ 'importTranslator' ] = get_class ( $ this -> importer -> getImportTranslator ( ) ) ; $ data [ 'sourceModelClass' ] = get_class ( $ this -> sourceModel ) ; $ data [ 'targetModelClass' ] = get_class ( $ this -> targetModel ) ; ksort ( $ data ) ; $ this -> accesslog -> logChange ( $ this -> request , null , array_filter ( $ data ) ) ; }
Hook for after save

@param \MUtil_Task_TaskBatch $batch that was just executed
@param \MUtil_Form_Element_Html $element Tetx element for display of messages
@return string a message about what has changed (and used in the form)
Hook for after save