Manager
class Manager extends Base
Manager class for the feature parser of the famous JTL connector.
Properties
protected string | $_name | from Base | |
protected | $_classes | from Base | |
protected array | $_methods | ||
protected array | $_parameters | ||
protected Producer | $_producer |
Methods
Returns the Producer.
Returns the parameters that will be extraced during the import/export.
Registers a parameter where the producer will looking for during the import/export phase.
Registers multiple parameters.
Checks if a parameter already exists and returns the result as boolean.
Returns the methods that will be extraced during the import/export.
Registers a method by name where the producer will look for during the import/export phase.
Registers multiple methods at once.
Checks if a method already exists and returns the result as boolean.
Will check if the producer exists.
Details
in Base at line 30
final string
getName()
Returns the name.
in Base at line 41
final boolean
setName(string $name)
Sets the name.
in Base at line 57
array
getClasses()
Returns all declared classes.
We need this way, because the autoloader will try to include the class file if we use "class_exists" or similar functions.
at line 46
__construct(Producer $producer = null)
Constructor.
at line 60
setProducer(Producer $producer)
Sets the producer, the base class of this converting manager.
at line 71
Producer
getProducer()
Returns the Producer.
at line 81
array
getParameters()
Returns the parameters that will be extraced during the import/export.
at line 94
registerParameter(string $name)
Registers a parameter where the producer will looking for during the import/export phase.
at line 108
registerParameters(array $parameters)
Registers multiple parameters.
at line 121
protected bool
existsParameter(string $name)
Checks if a parameter already exists and returns the result as boolean.
at line 131
array
getMethods()
Returns the methods that will be extraced during the import/export.
at line 144
registerMethod(string $name)
Registers a method by name where the producer will look for during the import/export phase.
at line 158
registerMethods(array $methods)
Registers multiple methods at once.
at line 171
protected bool
existsMethod(string $name)
Checks if a method already exists and returns the result as boolean.
at line 186
protected
checkProducer(string $type = 'Import')
Will check if the producer exists.
If there is no producer, we need to inform the caller about his inconsistency.
at line 202
array
import(IImporter $importer)
Starts the importing process in the producer.
at line 217
mixed
export(IExporter $export)
Starts the exporting process in the producer.