PHP 클래스 Beatnik_Driver_sql, horde

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
저자: Duck ([email protected])
상속: extends Beatnik_Driver
파일 보기 프로젝트 열기: horde/horde

공개 프로퍼티들

프로퍼티 타입 설명
$_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.

공개 메소드들

메소드 설명
Beatnik_Driver_sql ( 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
_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
getRecDriverFields ( string $type ) : array Get any fields available specifically in this driver by record type.
getRecDriverTypes ( ) : array Get any record types available specifically in this driver.
getRecords ( string $domain ) : array Gets all records associated with the given zone

메소드 상세

Beatnik_Driver_sql() 공개 메소드

Constructs a new Beatnik DB driver object.
public Beatnik_Driver_sql ( 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

_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

getRecDriverFields() 공개 메소드

Get any fields available specifically in this driver by record type.
public getRecDriverFields ( string $type ) : array
$type string Record type for which fields should be returned
리턴 array Fields specific to this driver

getRecDriverTypes() 공개 메소드

Get any record types available specifically in this driver.
public getRecDriverTypes ( ) : array
리턴 array Records available only to this driver

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