Download the PHP package openlss/lib-pdns without Composer
On this page you can find all versions of the php package openlss/lib-pdns. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package lib-pdns
lib-pdns
PHP library for modifying an PowerDNS MySQL database
Usage
Reference
(array) PDNS::fetchDomain($name)
Get a domain by its name and return the database row
(array) PDNS::fetchDomainByHost($name)
Take a FQDN and return its given domain database row
(mixed) PDNS::update($identifier,$data,$type='A')
- $identifier Ident that gets passed to PDNS::fetchDomainByHost()
- $data The record data eg: 1.2.3.4
- $type The record type defaults to A Returns the record ID on creation, TRUE on update, FALSE on failure
(mixed) PDNS::delete($identifier,$data,$type='A')
- $identifier The host identifier eg: www.test.com
- $data The record data eg: 1.2.3.4
- $type Record type which defaults to A Returns FALSE on failure, TRUE on success
Internal Refernce
This is for raw database actions, generally more advanced usage.
(mixed) PDNS::createRecord($args)
Takes any amount of arguments to create a database record. The current record schema looks like this
- id Record ID number
- domain_id Domain ID number
- name The record name eg: www.test.com
- type Record type eg: A
- content Record content eg: 1.2.3.4
- ttl Record TTL eg: 60
- prio The record priority mainly used for MX records eg: 10
- change_date This gets set automatically
(mixed) PDNS::fetchRecord($args)
Similar to create by takes an array of arguments related to the schema and returns the database row. Returns FALSE on failure
(bool) PDNS::updateRecord($id=null,$args=array())
- $id Record ID number
- $args Parameters to update, see the schema for PDNS::createRecord() Returns TRUE on success, FALSE on failure
(bool) PDNS::deleteRcord($args=array())
- $args Similar to PDNS::fetchRecord() Returns TRUE on success, FALSE on failure
All versions of lib-pdns with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.2
openlss/core-boot Version ~0.0.1
openlss/func-log Version ~0.0.1
openlss/func-mda Version ~0.0.1
openlss/lib-config Version ~0.0.1
openlss/lib-db Version ~0.0.1
openlss/core-boot Version ~0.0.1
openlss/func-log Version ~0.0.1
openlss/func-mda Version ~0.0.1
openlss/lib-config Version ~0.0.1
openlss/lib-db Version ~0.0.1
The package openlss/lib-pdns contains the following files
Loading the files please wait ....