src/UI/HTML/PageFrame.php
public function setDocType( $doctype )
	{
		$doctypes	= array_keys( $this->doctypes );
		$key		= str_replace( array( ' ', '-' ), '_', trim( $doctype ) );
		$key		= preg_replace( "/[^A-Z0-9_]/", '', strtoupper( $key ) );
		if( !strlen( trim( $key ) ) )
			throw new InvalidArgumentException( 'No doctype given' );
		if( !array_key_exists( $key, $this->doctypes ) )
			throw new OutOfRangeException( 'Doctype "'.$doctype.'" (understood as '.$key.') is invalid' );
		$this->doctype	= $key;
	}
public function setDocType( $doctype )
	{
		$doctypes	= array_keys( $this->doctypes );
		$key		= str_replace( array( ' ', '-' ), '_', trim( $doctype ) );
		$key		= preg_replace( "/[^A-Z0-9_]/", '', strtoupper( $key ) );
		if( !strlen( trim( $key ) ) )
			throw new InvalidArgumentException( 'No doctype given' );
		if( !array_key_exists( $key, $this->doctypes ) )
			throw new OutOfRangeException( 'Doctype "'.$doctype.'" (understood as '.$key.') is invalid' );
		$this->doctype	= $key;
	}
public function setDocType ( $ doctype ) { $ doctypes = array_keys ( $ this -> doctypes ) ; $ key = str_replace ( array ( ' ' , '-' ) , '_' , trim ( $ doctype ) ) ; $ key = preg_replace ( "/[^A-Z0-9_]/" , '' , strtoupper ( $ key ) ) ; if ( ! strlen ( trim ( $ key ) ) ) throw new InvalidArgumentException ( 'No doctype given' ) ; if ( ! array_key_exists ( $ key , $ this -> doctypes ) ) throw new OutOfRangeException ( 'Doctype "' . $ doctype . '" (understood as ' . $ key . ') is invalid' ) ; $ this -> doctype = $ key ; }
Sets document type of page.
@access		public
@param		string		$doctype		Document type to set
@return		void
@see		http://www.w3.org/QA/2002/04/valid-dtd-list.html
Sets document type of page .