public function get($doctype)
    {
        if (isset($this->aliases[$doctype])) {
            $doctype = $this->aliases[$doctype];
        }
        if (!isset($this->doctypes[$doctype])) {
            trigger_error('Doctype ' . htmlspecialchars($doctype) . ' does not exist', E_USER_ERROR);
            $anon = new HTMLPurifier_Doctype($doctype);
            return $anon;
        }
        return $this->doctypes[$doctype];
    }
public function get($doctype)
    {
        if (isset($this->aliases[$doctype])) {
            $doctype = $this->aliases[$doctype];
        }
        if (!isset($this->doctypes[$doctype])) {
            trigger_error('Doctype ' . htmlspecialchars($doctype) . ' does not exist', E_USER_ERROR);
            $anon = new HTMLPurifier_Doctype($doctype);
            return $anon;
        }
        return $this->doctypes[$doctype];
    }
public function get ( $ doctype ) { if ( isset ( $ this -> aliases [ $ doctype ] ) ) { $ doctype = $ this -> aliases [ $ doctype ] ; } if ( ! isset ( $ this -> doctypes [ $ doctype ] ) ) { trigger_error ( 'Doctype ' . htmlspecialchars ( $ doctype ) . ' does not exist' , E_USER_ERROR ) ; $ anon = new HTMLPurifier_Doctype ( $ doctype ) ; return $ anon ; } return $ this -> doctypes [ $ doctype ] ; }
Retrieves reference to a doctype of a certain name
@note This function resolves aliases
@note When possible, use the more fully-featured make()
@param string $doctype Name of doctype
@return HTMLPurifier_Doctype Editable doctype object
Retrieves reference to a doctype of a certain name