Configuration

There are two ways to apply settings to the iPinga application. First is during the iPinga application instantiation and the second is after instantiation. To do so at instantiation, simply pass an associative array (key=value pair). You can get or set all configurations settings after instantiation using the ipinga->config() method.

During instantiation, you could use code similar to this:

After instantiation, you could use code similar to this:

You may also use an associative array to configure settings after instantiation:

To retrieve a configuration setting, pass the name of the setting you wish to inspect. If the setting does not exist, null is returned: