Abstract class containing methods that are shared by all importer classes.

All importers must inherit this class.

package Webenq_Data_Import
author Bart Huttinga

 Methods

Constructor

__construct(\Webenq_Import_Adapter_Abstract $adapter, string $language) 

Parameters

$language

string

Converts the data retrieved from the adapter to an array with questions as keys and answers as array with values.

_getDataAsAnswers(array $data) : array

Parameters

$data

array

Data retrieved from the adapter

Returns

arrayQuestions as keys and answers as array with values

Factors an instance of Webenq_Import_Abstract, depending on the given type.

factory(string $type, \Webenq_Import_Adapter_Abstract $adapter, string $language) : \Webenq_Import_Abstract
Static

Parameters

$type

string

$language

string

Returns

The actual method for handling the import.

import() 
Inherited
inherited_from \Webenq_Import_Interface::import()

 Properties

 

$supportedTypes : array
   

$_language : string