Horde_Imap_Client_Url_Base::_parse PHP Method

_parse() protected method

protected _parse ( $url )
    protected function _parse($url)
    {
        $data = parse_url(trim($url));
        if (isset($data['scheme'])) {
            if (isset($data['host'])) {
                $this->host = $data['host'];
            }
            if (isset($data['port'])) {
                $this->port = $data['port'];
            }
        }
        /* Check for username/auth information. */
        if (isset($data['user'])) {
            if (($pos = stripos($data['user'], ';AUTH=')) !== false) {
                $auth = substr($data['user'], $pos + 6);
                if ($auth !== '*') {
                    $this->auth = $auth;
                }
                $data['user'] = substr($data['user'], 0, $pos);
            }
            if (strlen($data['user'])) {
                $this->username = $data['user'];
            }
        }
        $this->_parseUrl($data);
    }