set_authority example

$this->port,
                 $this->ipath,
                 $this->iquery,
                 $this->ifragment,
                 $return) = $cache[$iri];
            return $return;
        }

        $parsed = $this->parse_iri($iri);

        $return = $this->set_scheme($parsed['scheme'])
            && $this->set_authority($parsed['authority'])
            && $this->set_path($parsed['path'])
            && $this->set_query($parsed['query'])
            && $this->set_fragment($parsed['fragment']);

        $cache[$iri] = array($this->scheme,
                             $this->iuserinfo,
                             $this->ihost,
                             $this->port,
                             $this->ipath,
                             $this->iquery,
                             $this->ifragment,
                             
public function __construct($iri = null)
    {
        $this->set_iri($iri);
    }

    /** * Clean up */
    public function __destruct() {
        $this->set_iri(null, true);
        $this->set_path(null, true);
        $this->set_authority(null, true);
    }

    /** * Create a new IRI object by resolving a relative IRI * * Returns false if $base is not absolute, otherwise an IRI. * * @param IRI|string $base (Absolute) Base IRI * @param IRI|string $relative Relative IRI * @return IRI|false */
    
Home | Imprint | This part of the site doesn't use cookies.