예제 #1
0
 protected function searchForAllowNotify()
 {
     $genericObject = $this->searchForGenericAccessListSection("allow-notify");
     if ($genericObject !== false) {
         $this->object->setAllowNotify($genericObject);
     }
     return $this;
 }
예제 #2
0
파일: Zone.php 프로젝트: alekc/phbind
    /**
     * @return string
     */
    public function getAsString()
    {
        $commonOptions = parent::getAsString();
        $output = <<<EOF
zone "{$this->getName()}" {
    {$this->getGenericField("type", $this->_type)}
    {$this->getGenericField("file", $this->_file, true)}
    {$this->getGenericFieldEnclosedByBrackets("allow-update", $this->_allowUpdate)}

    {$this->getGenericField("check-names", $this->_checkNames)}
    {$this->getGenericField("delegation-only", $this->_delegationOnly)}

    {$this->getGenericFieldEnclosedByBrackets("in-view", $this->_inView, true)}

    {$this->getGenericFieldEnclosedByBrackets("server-addresses", $this->_serverAddresses)}
    {$this->getGenericFieldEnclosedByBrackets("server-names", $this->_serverNames)}
    {$this->getGenericFieldEnclosedByBrackets("update-policy", $this->_updatePolicy)}

    {$this->prefixBySpaces($commonOptions, 4)}
};
EOF;
        $output = GenericHelper::removeEmptyLines($output);
        return $output;
    }