source/Core/GenericImport/GenericImport.php
public function importData($data)
    {
        foreach ($data as $key => $row) {
            if ($row) {
                try {
                    $success = $this->importOne($row);
                    $errorMessage = '';
                } catch (Exception $e) {
                    $success = false;
                    $errorMessage = $e->getMessage();
                }

                $this->statistics[$key] = ['r' => $success, 'm' => $errorMessage];
            }
        }

        $this->afterImport($data);
    }
public function importData($data)
    {
        foreach ($data as $key => $row) {
            if ($row) {
                try {
                    $success = $this->importOne($row);
                    $errorMessage = '';
                } catch (Exception $e) {
                    $success = false;
                    $errorMessage = $e->getMessage();
                }

                $this->statistics[$key] = ['r' => $success, 'm' => $errorMessage];
            }
        }

        $this->afterImport($data);
    }
public function importData ( $ data ) { foreach ( $ data as $ key => $ row ) { if ( $ row ) { try { $ success = $ this -> importOne ( $ row ) ; $ errorMessage = '' ; } catch ( Exception $ e ) { $ success = false ; $ errorMessage = $ e -> getMessage ( ) ; } $ this -> statistics [ $ key ] = [ 'r' => $ success , 'm' => $ errorMessage ] ; } } $ this -> afterImport ( $ data ) ; }
Performs import action.

@param array $data
Performs import action .