Example #1
0
 function valuesToDescription()
 {
     if (count($this->errors)) {
         return $this->errorsDescription();
     }
     $descrMap = array(_T("Name server") => $this->values["dnsserver"], _T("Responsible person e-mail") => $this->values["mail"], _T("Time interval before the zone should be refreshed") => BindRemainingTimeTpl::descriptionForBindTimeString($this->values["refresh"]), _T("Time interval that should elapse before a failed refresh should be retried") => BindRemainingTimeTpl::descriptionForBindTimeString($this->values["retry"]), _T("Expiry time") => BindRemainingTimeTpl::descriptionForBindTimeString($this->values["expiry"]), _T("Minimum TTL") => BindRemainingTimeTpl::descriptionForBindTimeString($this->values["minttl"]), _T("Serial number") => $this->values["serial"]);
     return $this->_descriptionByValues($descrMap);
 }
Example #2
0
 static function descriptionForBindTimeString($str)
 {
     $result = "";
     $val = BindRemainingTimeTpl::valueFromBindTimeString($str);
     $weeks = intval($val["days"] / 7);
     if ($weeks) {
         $result .= $weeks . " " . _T("week(s)") . " ";
     }
     $days = intval($val["days"] % 7);
     if ($days) {
         $result .= $days . " " . _T("day(s)") . " ";
     }
     if ($val["hours"]) {
         $result .= $val["hours"] . " " . _T("hr") . " ";
     }
     if ($val["minutes"]) {
         $result .= $val["minutes"] . " " . _T("min") . " ";
     }
     if ($val["seconds"]) {
         $result .= $val["seconds"] . " " . _T("sec") . " ";
     }
     return rtrim($result);
 }
Example #3
0
    function valuesToDescription(){
    	if (count($this->errors))
	    return $this->errorsDescription();
	$descrMap = array(
			_T("Record type covered by this SIG") => $this->values["type"],
			_T("Algorithm") => $this->algorithmDescription($this->values["algorithm"]),
			_T("Labels") => $this->values["labels"],
			_T("Original TTL") => BindRemainingTimeTpl::descriptionForBindTimeString($this->values["ttl"]),
			_T("Signature inception time") => $this->timeDescription($this->values["inception"]),
			_T("Signature expiration time") => $this->timeDescription($this->values["expiration"]),
			_T("Key tag") => $this->values["keytag"],
			_T("Domain name of the signer, generating this SIG") => $this->values["signer"],
			_T("Signature") => $this->signatureDescription($this->values["signature"]));
	return $this->_descriptionByValues($descrMap);
    }