本文整理汇总了PHP中TPL::objDocumentType方法的典型用法代码示例。如果您正苦于以下问题:PHP TPL::objDocumentType方法的具体用法?PHP TPL::objDocumentType怎么用?PHP TPL::objDocumentType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TPL
的用法示例。
在下文中一共展示了TPL::objDocumentType方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setDocumentType
/**
* 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 <catalin.zamfir@raphpframework.ro>
* @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);
}
}