Producer
class Producer extends Base implements IProducer
Base class for the producer class.
Constants
FEATURES_KEY |
|
Properties
protected string | $_name | ||
protected | $_classes | from Base | |
protected IImporter | $_importer | ||
protected array | $_importer_data | ||
protected array | $_features | ||
protected IGroup | $_active_group | ||
protected array | $_groups | ||
protected array | $_methods | ||
protected array | $_parameters | ||
protected string | $_methods_cmp_str | ||
protected string | $_parameters_cmp_str | ||
protected Manager | $_manager |
Methods
No description
Returns the manager.
Returns the groups.
Returns the features.
Returns the methods that the producer should look for.
Adds a feature to the producer.
Adds a method to the producer that will be assigned to a feature.
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 90
__construct(Manager $manager = null)
Creates the producer instance.
at line 96
abstract protected
parse()
at line 103
setManager(Manager $manager)
Sets the manager.
at line 113
getManager()
Returns the manager.
at line 123
array
getGroups()
Returns the groups.
at line 133
array
getFeatures()
Returns the features.
at line 143
array
getMethods()
Returns the methods that the producer should look for.
at line 158
import(IImporter $importer)
Starts the importing process.
at line 174
export(IExporter $exporter)
Starts the exporting process.
at line 205
protected Feature
addFeature(string $name, array $methods)
Adds a feature to the producer.
at line 222
protected IGroup
addGroup(string $name, array $value)
Adds a group to the producer.
at line 244
protected IMethod
createMethod(string $method, array $params)
Adds a method to the producer that will be assigned to a feature.