Свойство | Type | Description | |
---|---|---|---|
$_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. |
Méthode | Description | |
---|---|---|
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 |
public Beatnik_Driver_sql ( array $params = [] ) | ||
$params | array | A hash containing connection parameters. |
public _deleteRecord ( array $data ) : boolean | ||
$data | array | Reference to array of record data to be deleted |
Résultat | boolean | true on success, PEAR::Error on error |
public _getDomains ( ) : array | ||
Résultat | array | Array with zone records numerically indexed |
public _saveRecord ( array $info ) : boolean | ||
$info | array | Array of record data |
Résultat | boolean | true on success |
public getRecDriverFields ( string $type ) : array | ||
$type | string | Record type for which fields should be returned |
Résultat | array | Fields specific to this driver |
public getRecDriverTypes ( ) : array | ||
Résultat | array | Records available only to this driver |
public getRecords ( string $domain ) : array | ||
$domain | string | Retrieve records for this domain |
Résultat | array | Array with zone records |
public bool $_connected | ||
Résultat | boolean |
public array $_params | ||
Résultat | array |