Public Method Details |
Secondary |
|
public void Secondary( string $db, string $zonename, string $zonetype, string $user )
|
| |
Class constructor - initialize all secondary data from DB
|
| Parameter |
|
|
|
| string |
$zonename |
|
|
name of zone |
|
|
| string |
$zonetype |
|
|
type of zone (necessary secondary...) |
|
|
| string |
$user |
|
|
Current user, from class User |
|
| Returns |
void |
|
printModifyForm |
|
public string printModifyForm( )
|
| |
Print HTML form pre-filled with current data
|
| Returns |
string HTML form pre-filled |
|
PrintModified |
|
public string PrintModified( array $params )
|
| |
Take params send by "printmodifyform", do integrity
checks,checkDig & call $this->updateDb
|
| Parameter |
|
| array |
$params |
|
|
array of params: primary, xfer & xferIP |
|
| Returns |
string HTML output |
|
updateDb |
|
public int updateDb( string $primary, string $xferip )
|
| |
Update DB with new secondary parameters
|
| Parameter |
|
| string |
$primary |
|
|
IP(s) of primary name server(s) |
|
|
| string |
$xferip |
|
|
IP(s) allowed to do zone transfers |
|
| Returns |
int 1 if success, 0 if error |
|