本文整理汇总了PHP中Path::ReplaceFileNameIllegalCharacters方法的典型用法代码示例。如果您正苦于以下问题:PHP Path::ReplaceFileNameIllegalCharacters方法的具体用法?PHP Path::ReplaceFileNameIllegalCharacters怎么用?PHP Path::ReplaceFileNameIllegalCharacters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Path
的用法示例。
在下文中一共展示了Path::ReplaceFileNameIllegalCharacters方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: RenderPage
function RenderPage(Page $Page)
{
header("Content-type: text/xml");
$this->DisableCacheControl();
header("Content-Disposition: attachment;Filename=" . Path::ReplaceFileNameIllegalCharacters($Page->GetCaption() . ".xml"));
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Pragma: public");
set_time_limit(0);
$Grid = $this->Render($Page->GetGrid());
$this->DisplayTemplate('export/xml_page.tpl', array('Page' => $Page), array('Grid' => $Grid));
}
示例2: RenderPage
function RenderPage(Page $Page)
{
if ($Page->GetContentEncoding() != null) {
header('Content-type: application/vnd.ms-word; charset=' . $Page->GetContentEncoding());
} else {
header("Content-type: application/vnd.ms-word");
}
$this->DisableCacheControl();
header("Content-Disposition: attachment;Filename=" . Path::ReplaceFileNameIllegalCharacters($Page->GetCaption() . ".doc"));
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Pragma: public");
set_time_limit(0);
$Grid = $this->Render($Page->GetGrid());
$this->DisplayTemplate('export/word_page.tpl', array('Page' => $Page), array('Grid' => $Grid));
}