Overview

Packages

  • Beatnik
  • None

Classes

  • Autogenerate
  • Beatnik
  • Beatnik_Driver
  • Beatnik_Driver_ldap2dns
  • Beatnik_Driver_pdnsgsql
  • Beatnik_Driver_sql
  • DeleteRecord
  • EditRecord
  • Overview
  • Package
  • Class
  • Tree

Class Beatnik_Driver_pdnsgsql

The Beatnik_Driver_sql class implements a SQL driver for managing DNS records in the PowerDNS generic SQL driver. The PowerDNS generic SQL driver aims to support MySQL, PostgreSQL, SQLite and Oracle. This driver attempts to do the same as long as the default queries are used.

Copyright 2008-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Beatnik_Driver
Extended by Beatnik_Driver_pdnsgsql
Package: Beatnik
Author: Ben Klang ben@alkaloid.net
Located at Driver/pdnsgsql.php
Methods summary
public
# __construct( array $params = array() )

Constructs a new Beatnik DB driver object.

Constructs a new Beatnik DB driver object.

Parameters

$params
A hash containing connection parameters.
public array
# _getDomains( )

Gets all zones

Gets all zones

Returns

array
Array with zone records numerically indexed
public array
# getDomain( string $domainname )

Return SOA for a single domain

Return SOA for a single domain

Parameters

$domainname
$domain Domain for which to return SOA information

Returns

array
Domain SOA

Overrides

Beatnik_Driver::getDomain()
public array
# getRecords( string $domain )

Gets all records associated with the given zone

Gets all records associated with the given zone

Parameters

$domain
Retrieve records for this domain

Returns

array
Array with zone records
public boolean
# _saveRecord( array $info )

Saves a new or edited record to the DNS backend

Saves a new or edited record to the DNS backend

Parameters

$info
Array of record data

Returns

boolean
true on success
public boolean
# _deleteRecord( array $data )

Delete record from backend

Delete record from backend

Parameters

$data
Reference to array of record data to be deleted

Returns

boolean
true on success, PEAR::Error on error
public boolean
# _connect( )

Attempts to open a persistent connection to the SQL server.

Attempts to open a persistent connection to the SQL server.

Returns

boolean
True on success.
public boolean
# _disconnect( )

Disconnects from the SQL server and cleans up the connection.

Disconnects from the SQL server and cleans up the connection.

Returns

boolean
True on success, false on failure.
Methods inherited from Beatnik_Driver
Beatnik_Driver(), deleteRecord(), factory(), getDomains(), getRecDriverFields(), getRecDriverTypes(), getRecord(), recordExists(), saveRecord()
Properties summary
public array $_params

Hash containing connection parameters.

Hash containing connection parameters.

# array()
public DB $_db

Handle for the current database connection.

Handle for the current database connection.

#
public DB $_write_db

Handle for the current database connection, used for writing. Defaults to the same handle as $_db if a separate write database is not required.

Handle for the current database connection, used for writing. Defaults to the same handle as $_db if a separate write database is not required.

#
public boolean $_connected

Boolean indicating whether or not we're connected to the SQL server.

Boolean indicating whether or not we're connected to the SQL server.

# false
API documentation generated by ApiGen