Public Method Details |
Zone |
|
public void Zone( string $dbase, string $zonename, string $zonetype )
|
| |
Class constructor
|
| Parameter |
|
| string |
$dbase |
|
|
database currently used |
|
|
| string |
$zonename |
|
|
name of zone, may be empty |
|
|
| string |
$zonetype |
|
|
type of zone ('M'aster or 'S'lave) |
|
| Returns |
void |
|
retrieveID |
|
public int retrieveID( string $zonename, string $zonetype )
|
| |
Retrieve ID of current zone in $this->zoneid
|
| Parameter |
|
| string |
$zonename |
|
|
name of zone |
|
|
| string |
$zonetype |
|
|
type of zone ('M'aster or 'S'lave) |
|
| Returns |
int 0 if error or no such zone, 1 if ID found |
|
zoneCreate |
|
public int zoneCreate( string $zonename, string $zonetype, int $userid )
|
| |
Insert new zone in dns_zone table
|
| Parameter |
|
| string |
$zonename |
|
|
zone name |
|
|
| string |
$zonetype |
|
|
zone type ('M'aster or 'S'lave) |
|
|
|
| Returns |
int 1 if success, 0 if trouble |
|
zoneDelete |
|
public int zoneDelete( string $zonename, string $zonetype )
|
| |
Delete zone and records from all tables
|
| Parameter |
|
| string |
$zonename |
|
|
zone name |
|
|
| string |
$zonetype |
|
|
zone type ('M'aster or 'S'lave) |
|
| Returns |
int 1 if success, 0 if trouble |
|
zoneLogs |
|
public string zoneLogs( string $class1, string $class2 )
|
| |
Return HTML table with all logs regarding zone
Lines are alternatively colored using class parameterfor <tr> and <td>. classes have to be defined in CSS file,as <classname>INFORMATION,<classname>WARNING,<classname>ERROR
|
| Parameter |
|
| string |
$class1 |
|
|
<classname> |
|
|
| string |
$class2 |
|
|
<alternateclassname> |
|
| Returns |
string html code of rows |
|
zoneStatus |
|
public string zoneStatus( )
|
| |
Returns status of zone: I(nformation), W(arning), E(rror), or U(nknown)
|
| Returns |
string I W E or U or 0 if trouble |
|
RetrieveUser |
|
public int RetrieveUser( )
|
| |
Retrieve user ID of zone owner
|
| Returns |
int user ID or 0 if trouble |
|