/** * Will set a <DOCTYPE header for the current page. You can use this method by specifying an existing <!DOCTYPE in the FRM_DIR * that will change the generated document type that will be outputed to the browser. For example we use the XHTML Strict 1.0 but * you can opt for transitional or any other kind of <!DOCTYPE you want as long as you create the specific file at fist; * * @param S $documentType The kind of document type (xhtml, html, etc.) to set the page to * @return B Will return true if the content of the document DTD was loaded, else will return a false * @author Catalin Z. Alexandru <*****@*****.**> * @copyright Under the terms of the GNU General Public License v3 * @version $Id: 10_TPL.php 315 2009-10-11 07:11:31Z catalin.zamfir $ * @since Version 1.0 * @access public * @static * @final */ public static final function setDocumentType(S $documentType) { if (self::$objDocumentType = new FileContent(FORM_TP_DIR . _S . 'frm_web_header_' . $documentType . '.tp')) { // Do return ... return new B(TRUE); } else { // Do return ... return new B(FALSE); } }