Erebot
latest
A modular IRC bot for PHP 7.0+
|
Contains the configuration for an IRC channel. More...
Public Member Functions | |
__construct (\Erebot\Interfaces\Config\Network $netCfg,\SimpleXMLElement $xml) | |
__destruct () | |
Destructor. | |
getName () | |
getNetworkCfg () | |
Public Member Functions inherited from Erebot\Config\Proxy | |
__clone () | |
__destruct () | |
getMainCfg () | |
getModule ($moduleName) | |
getModules ($recursive) | |
getTranslator ($component) | |
parseBool ($module, $param, $default=null) | |
parseInt ($module, $param, $default=null) | |
parseReal ($module, $param, $default=null) | |
parseString ($module, $param, $default=null) | |
Protected Attributes | |
$name | |
The name of the channel this configuration refers to. | |
$netCfg | |
Netword configuration configuration this object depends on. | |
Protected Attributes inherited from Erebot\Config\Proxy | |
$locale | |
The current locale. | |
$modules | |
Array of modules loaded at this particular configuration level. | |
$proxified | |
Reference to a proxified object. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Erebot\Config\Proxy | |
static | parseBoolHelper ($value) |
static | parseIntHelper ($value) |
static | parseRealHelper ($value) |
Protected Member Functions inherited from Erebot\Config\Proxy | |
__construct (\Erebot\Interfaces\Config\Proxy $proxified,\SimpleXMLElement $xml) | |
parseSomething ($module, $param, $default, callable $parser, $origin, callable $checker) | |
Static Protected Member Functions inherited from Erebot\Config\Proxy | |
static | getBaseDir ($component) |
Contains the configuration for an IRC channel.
This is mainly used to provide autojoin and advanced i18n capabilities to the bot.
Definition at line 30 of file Channel.php.
Erebot\Config\Channel::__construct | ( | \Erebot\Interfaces\Config\Network | $netCfg, |
\SimpleXMLElement | $xml | ||
) |
Creates a new configuration object for an IRC channel.
Erebot::Interfaces::Config::Network | $netCfg | An object which contains the network configuration for this channel. |
SimpleXMLElement | $xml | An XML node containing the configuration data for this network. |
Definition at line 49 of file Channel.php.
References Erebot\Config\Channel\$netCfg.
Erebot\Config\Channel::getName | ( | ) |
Definition at line 65 of file Channel.php.
References Erebot\Config\Channel\$name.
Erebot\Config\Channel::getNetworkCfg | ( | ) |
Definition at line 71 of file Channel.php.
References Erebot\Config\Channel\$netCfg.