Producer
class Producer extends Producer
Constants
FEATURES_KEY |
|
Properties
protected string | $_name | from Producer | |
protected | $_classes | from Base | |
protected IImporter | $_importer | from Producer | |
protected array | $_importer_data | from Producer | |
protected array | $_features | from Producer | |
protected IGroup | $_active_group | from Producer | |
protected array | $_groups | from Producer | |
protected array | $_methods | from Producer | |
protected array | $_parameters | from Producer | |
protected string | $_methods_cmp_str | from Producer | |
protected string | $_parameters_cmp_str | from Producer | |
protected Manager | $_manager | from Producer |
Methods
Loads the importer, validation and extracting of the datas.
Adds a method to the producer that will be assigned to a feature.
Will start the load process inside of the importer and validates the datas that will be returned by this method.
Extracts the different layers, methods and parameters.
Extracts the actual layer with a given key, manage the parent and adds (if found) features, groups and childrens to the producer.
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 40
parse()
Loads the importer, validation and extracting of the datas.
in Producer at line 113
getManager()
Returns the manager.
in Producer at line 123
array
getGroups()
Returns the groups.
in Producer at line 133
array
getFeatures()
Returns the features.
in Producer at line 143
array
getMethods()
Returns the methods that the producer should look for.
in Producer at line 192
transform(IImporter $from, IExporter $to)
Will do the import and export in one call.
in Producer at line 205
protected Feature
addFeature(string $name, array $methods)
Adds a feature to the producer.
in Producer at line 222
protected IGroup
addGroup(string $name, array $value)
Adds a group to the producer.
in Producer at line 244
protected IMethod
createMethod(string $method, array $params)
Adds a method to the producer that will be assigned to a feature.
at line 19
protected
loadAndValidate()
Will start the load process inside of the importer and validates the datas that will be returned by this method.
at line 52
protected
extractLayers()
Extracts the different layers, methods and parameters.
at line 85
protected
extractLayer(string $key, mixed $layer, type $parent = null)
Extracts the actual layer with a given key, manage the parent and adds (if found) features, groups and childrens to the producer.