|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
Interface for a module's configuration. More...
Inheritance diagram for Erebot\Interfaces\Config\Module:Public Member Functions | |
| getName () | |
| getParam ($param) | |
| getParamsNames () | |
| isActive ($active=null) | |
Interface for a module's configuration.
This interface provides the necessary methods to represent the configuration associated with a module.
Definition at line 31 of file Module.php.
| Erebot\Interfaces\Config\Module::getName | ( | ) |
Returns the name of this module.
| string | The name of the module represented by this module configuration. |
Implemented in Erebot\Config\Module.
| Erebot\Interfaces\Config\Module::getParam | ( | $param | ) |
Returns the value for the given parameter.
| string | $param | The name of the parameter we are interested in. |
| string | The value of the parameter. |
| Erebot::InvalidValueException | The $param argument was not a valid parameter name. |
| Erebot::NotFoundException | There was no parameter with this name defined in the configuration file. |
Implemented in Erebot\Config\Module.
| Erebot\Interfaces\Config\Module::getParamsNames | ( | ) |
Returns the names of the parameters for this module.
| array | A list with the names (as strings) of the parameters configured for this module. |
Implemented in Erebot\Config\Module.
| Erebot\Interfaces\Config\Module::isActive | ( | $active = null | ) |
Gets/sets the active flag on this module.
| null | bool | $active | An optional parameter which can be used to change the value of the active flag for this module. |
| bool | The value of the active flag as it was before this method was called. |
| Erebot::InvalidValueException | The new value for the active flag is not a valid boolean value. |
Implemented in Erebot\Config\Module.