public function setXmlBase($xmlBase = '')
    {
        if (is_string($xmlBase) && (empty($xmlBase) || Format::isUri($xmlBase))) {
            $this->xmlBase = $xmlBase;
        } else {
            $msg = "The 'base' argument must be an empty string or a valid URI, '" . $xmlBase . "' given";
            throw new InvalidArgumentException($msg);
        }
    }
public function setXmlBase($xmlBase = '')
    {
        if (is_string($xmlBase) && (empty($xmlBase) || Format::isUri($xmlBase))) {
            $this->xmlBase = $xmlBase;
        } else {
            $msg = "The 'base' argument must be an empty string or a valid URI, '" . $xmlBase . "' given";
            throw new InvalidArgumentException($msg);
        }
    }
public function setXmlBase ( $ xmlBase = '' ) { if ( is_string ( $ xmlBase ) && ( empty ( $ xmlBase ) || Format :: isUri ( $ xmlBase ) ) ) { $ this -> xmlBase = $ xmlBase ; } else { $ msg = "The 'base' argument must be an empty string or a valid URI, '" . $ xmlBase . "' given" ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the base URI of the TemplateBlock.

@param string $xmlBase A URI.
@throws \InvalidArgumentException if $base is not a valid URI nor an empty string.
Set the base URI of the TemplateBlock .