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_sql

Copyright 2006-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_sql
Package: Beatnik
Author: Duck duck@obala.net
Located at Driver/sql.php
Methods summary
public
# Beatnik_Driver_sql( 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
# getRecDriverTypes( )

Get any record types available specifically in this driver.

Get any record types available specifically in this driver.

Returns

array
Records available only to this driver

Overrides

Beatnik_Driver::getRecDriverTypes()
public array
# getRecDriverFields( string $type )

Get any fields available specifically in this driver by record type.

Get any fields available specifically in this driver by record type.

Parameters

$type
Record type for which fields should be returned

Returns

array
Fields specific to this driver

Overrides

Beatnik_Driver::getRecDriverFields()
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.
Methods inherited from Beatnik_Driver
Beatnik_Driver(), deleteRecord(), factory(), getDomains(), 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