Inherits IcingaApiConnection, and IcingaApiConnectionInterface.
Inherited by IcingaApiConnectionIdo.
Public Member Functions | |
| __construct () | |
| createSearch () | |
| checkConfig (array $config) | |
| setConfig (array $config) | |
| connect () | |
| query ($query, $queryParams=array()) | |
Public Attributes | |
| $connectionStatement = false | |
| IcingaApiConnectionDatabase::__construct | ( | ) |
class constructor
| void |
Reimplemented from IcingaApiConnection.
Reimplemented in IcingaApiConnectionIdo.
| IcingaApiConnectionDatabase::checkConfig | ( | array $ | config | ) |
checks the database configuration
| array | $config associative array storing configuration |
| IcingaApiConnectionDatabase::connect | ( | ) |
connects to database
| array | $config associative array storing database connection settings |
Implements IcingaApiConnectionInterface.
| IcingaApiConnectionDatabase::createSearch | ( | ) | [abstract] |
calls initialization method for new search
| void |
Reimplemented in IcingaApiConnectionIdo.
| IcingaApiConnectionDatabase::query | ( | $ | query, | |
| $ | queryParams = array() | |||
| ) |
queries database using PDOs
| string | $query query to execute | |
| array | $queryParams query parameters to use with query |
Implements IcingaApiConnectionInterface.
| IcingaApiConnectionDatabase::setConfig | ( | array $ | config | ) |
assembles the database DSN
| array | $config associative array storing database connection settings |
Implements IcingaApiConnectionInterface.
| IcingaApiConnectionDatabase::$connectionStatement = false |
1.6.1