Erebot
latest
A modular IRC bot for PHP 7.0+
|
This class contains the configuration for an IRC network. More...
Public Member Functions | |
__construct (\Erebot\Interfaces\Config\Main $mainCfg,\SimpleXMLElement $xml) | |
__destruct () | |
getChannelCfg ($channel) | |
getChannels () | |
getName () | |
getServerCfg ($server) | |
getServers () | |
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 | |
$channels | |
A list of channel configurations which apply to this network. | |
$maincfg | |
Main configuration this object depends on. | |
$name | |
The name of this IRC network. | |
$servers | |
A list of server configurations which apply to this network. | |
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) |
This class contains the configuration for an IRC network.
This class deals with settings which apply for a whole IRC network, such as its name. It also contains references to instances that implement the Erebot::Interfaces::Config::Server or Erebot::Interfaces::Config::Channel interfaces and apply to this IRC network.
Definition at line 33 of file Network.php.
Erebot\Config\Network::__construct | ( | \Erebot\Interfaces\Config\Main | $mainCfg, |
\SimpleXMLElement | $xml | ||
) |
Creates a new configuration object for an IRC network.
Erebot::Interfaces::Config::Main | $mainCfg | A reference to the main configuration for the bot. |
SimpleXMLElement | $xml | An XML node containing the configuration data for this network. |
Definition at line 57 of file Network.php.
Erebot\Config\Network::__destruct | ( | ) |
Destructor.
Definition at line 89 of file Network.php.
Erebot\Config\Network::getChannelCfg | ( | $channel | ) |
Definition at line 120 of file Network.php.
Erebot\Config\Network::getChannels | ( | ) |
Definition at line 129 of file Network.php.
References Erebot\Config\Network\$channels.
Erebot\Config\Network::getName | ( | ) |
Definition at line 99 of file Network.php.
References Erebot\Config\Network\$name.
Erebot\Config\Network::getServerCfg | ( | $server | ) |
Definition at line 105 of file Network.php.
Erebot\Config\Network::getServers | ( | ) |
Definition at line 114 of file Network.php.
References Erebot\Config\Network\$servers.