PHP Класс Beatnik_Driver_pdnsgsql, horde

Copyright 2008-2016 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.
Автор: Ben Klang ([email protected])
Наследование: extends Beatnik_Driver
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$_connected boolean Boolean indicating whether or not we're connected to the SQL server.
$_db DB Handle for the current database connection.
$_params array Hash containing connection parameters.
$_write_db 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.

Открытые методы

Метод Описание
__construct ( array $params = [] ) Constructs a new Beatnik DB driver object.
_connect ( ) : boolean Attempts to open a persistent connection to the SQL server.
_deleteRecord ( array $data ) : boolean Delete record from backend
_disconnect ( ) : boolean Disconnects from the SQL server and cleans up the connection.
_getDomains ( ) : array Gets all zones
_saveRecord ( array $info ) : boolean Saves a new or edited record to the DNS backend
getDomain ( $domainname ) : array Return SOA for a single domain
getRecords ( string $domain ) : array Gets all records associated with the given zone

Описание методов

__construct() публичный Метод

Constructs a new Beatnik DB driver object.
public __construct ( array $params = [] )
$params array A hash containing connection parameters.

_connect() публичный Метод

Attempts to open a persistent connection to the SQL server.
public _connect ( ) : boolean
Результат boolean True on success.

_deleteRecord() публичный Метод

Delete record from backend
public _deleteRecord ( array $data ) : boolean
$data array Reference to array of record data to be deleted
Результат boolean true on success, PEAR::Error on error

_disconnect() публичный Метод

Disconnects from the SQL server and cleans up the connection.
public _disconnect ( ) : boolean
Результат boolean True on success, false on failure.

_getDomains() публичный Метод

Gets all zones
public _getDomains ( ) : array
Результат array Array with zone records numerically indexed

_saveRecord() публичный Метод

Saves a new or edited record to the DNS backend
public _saveRecord ( array $info ) : boolean
$info array Array of record data
Результат boolean true on success

getDomain() публичный Метод

Return SOA for a single domain
public getDomain ( $domainname ) : array
Результат array Domain SOA

getRecords() публичный Метод

Gets all records associated with the given zone
public getRecords ( string $domain ) : array
$domain string Retrieve records for this domain
Результат array Array with zone records

Описание свойств

$_connected публичное свойство

Boolean indicating whether or not we're connected to the SQL server.
public bool $_connected
Результат boolean

$_db публичное свойство

Handle for the current database connection.
public DB $_db
Результат DB

$_params публичное свойство

Hash containing connection parameters.
public array $_params
Результат array

$_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.
public DB $_write_db
Результат DB