Permalink
Browse files

fixed SOA content string generator

  • Loading branch information...
MatthiasLohr committed Jan 31, 2015
1 parent 637ba6e commit 232890b3ff8268282129662297ce1faf96667874
Showing with 9 additions and 1 deletion.
  1. +9 −1 api/lib/rrtypes/srvrecord.class.php
@@ -29,6 +29,14 @@
*/
class SrvRecord extends ResourceRecord {
+ public function getContentString() {
+ return implode(' ', array(
+ $this->getField('importance'),
+ $this->getField('port'),
+ $this->getField('host')
+ ));
+ }
+
public static function listFields() {
return array(
'importance' => 'UInt',
@@ -39,4 +47,4 @@ public static function listFields() {
}
}
-?>
+?>

0 comments on commit 232890b

Please sign in to comment.