opensrs\domains\bulkchange\changetype\DomainForwarding::validateChangeType PHP 메소드

validateChangeType() 공개 메소드

public validateChangeType ( $dataObject )
    public function validateChangeType($dataObject)
    {
        foreach ($this->checkFields as $field) {
            if (!isset($dataObject->data->{$field}) || !$dataObject->data->{$field}) {
                throw new Exception("oSRS Error - change type is {$this->change_type} but {$field} is not defined.");
            }
        }
        return true;
    }