本文整理汇总了PHP中NTemplateHelpers::escapeXml方法的典型用法代码示例。如果您正苦于以下问题:PHP NTemplateHelpers::escapeXml方法的具体用法?PHP NTemplateHelpers::escapeXml怎么用?PHP NTemplateHelpers::escapeXml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NTemplateHelpers
的用法示例。
在下文中一共展示了NTemplateHelpers::escapeXml方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<id><?php echo NTemplateHelpers::escapeXml($id) ?></id>
<nazev><?php echo NTemplateHelpers::escapeXml($kat->nazev) ?></nazev>
<sport><?php echo NTemplateHelpers::escapeXml($kat->sport) ?></sport>
<typ><?php if ($kat->druzstvo==1): ?>jednotlivci<?php else: ?>družstva<?php endif ?></typ>
<?php $iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($kat['prihlasky']) as $prihlaska): ?>
<?php if ($iterator->isFirst()): if ($kat->druzstvo<>1): ?>
<druzstvo>
<id><?php echo NTemplateHelpers::escapeXml($prihlaska['druzstvo']) ?></id>
<nazev><?php echo NTemplateHelpers::escapeXml($prihlaska['nazev_druzstva']) ?></nazev>
<druzstvo_oddil><?php echo NTemplateHelpers::escapeXml($prihlaska['druzstvo_oddil']) ?></druzstvo_oddil>
<druzstvo_nazev_oddilu><?php echo NTemplateHelpers::escapeXml($prihlaska['druzstvo_nazev_oddilu']) ?>
</druzstvo_nazev_oddilu><?php endif ?>
<?php endif ?>
<osoba>
<id><?php echo NTemplateHelpers::escapeXml($prihlaska['osoba']) ?></id>
<jmeno><?php echo NTemplateHelpers::escapeXml($prihlaska['jmeno']) ?></jmeno>
<prijmeni><?php echo NTemplateHelpers::escapeXml($prihlaska['prijmeni']) ?></prijmeni>
<rocnik><?php echo NTemplateHelpers::escapeXml($prihlaska['rocnik']) ?></rocnik>
<trener><?php echo NTemplateHelpers::escapeXml($prihlaska['trener']) ?></trener>
<oddil><?php echo NTemplateHelpers::escapeXml($prihlaska['oddil']) ?></oddil>
<nazev_oddilu><?php echo NTemplateHelpers::escapeXml($prihlaska['nazev_oddilu']) ?></nazev_oddilu>
<poznamka><?php echo NTemplateHelpers::escapeXml($prihlaska['poznamka']) ?></poznamka>
</osoba>
<?php if ($iterator->isLast()): if ($kat->druzstvo<>1): ?>
</druzstvo>
<?php endif ;endif ;$iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>
</kategorie>
<?php $iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>
</gis>
示例2: list
<?php //netteCache[01]000357a:2:{s:4:"time";s:21:"0.21944800 1429609577";s:9:"callbacks";a:2:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:68:"/home/svn/repos/gymfed/trunk/app/GisModule/templates/M2m/error.latte";i:2;i:1419947299;}i:1;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:20:"NFramework::REVISION";i:2;s:30:"dc83a21 released on 2013-07-11";}}}?><?php
// source file: /home/svn/repos/gymfed/trunk/app/GisModule/templates/M2m/error.latte
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, 'ri8tloj865')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
$netteHttpResponse->setHeader("Content-Type", 'application/xml') ?>
<<?php ?>?xml version="1.0" encoding="UTF-8"?>
<gis>
<error><?php echo NTemplateHelpers::escapeXml($error) ?></error>
</gis>
示例3: foreach
// main template
//
$netteHttpResponse->setHeader("Content-Type", 'application/rss+xml; charset=utf-8') ?>
<<?php ?>?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>Česká gymnastická federace</title>
<link><?php echo NTemplateHelpers::escapeXml($_control->link("//Homepage:default")) ?></link>
<description>Česká gymnastická federace</description>
<language>cs</language>
<image>
<url><?php echo NTemplateHelpers::escapeXml($basePath) ?>/images/cgf-logo_smallx.jpg</url>
<title>Česká gymnastická federace</title>
<link><?php echo NTemplateHelpers::escapeXml($_control->link("//Homepage:default")) ?></link>
<width>120</width>
<height>99</height>
</image>
<?php $iterations = 0; foreach ($clanky as $clanek): ?>
<item>
<title><?php echo NTemplateHelpers::escapeXml($clanek->nadpis) ?></title>
<link><?php echo NTemplateHelpers::escapeXml($_control->link("//Clanky:default", array($clanek->url))) ?></link>
<description><?php echo NTemplateHelpers::escapeXml($clanek->perex) ?></description>
<pubDate><?php echo NTemplateHelpers::escapeXml($clanek->zobrazit_od->format('r')) ?></pubDate>
<enclosure url="<?php echo NTemplateHelpers::escapeXml($_control->link("//Homepage:default")) ;echo NTemplateHelpers::escapeXml($basePath) ?>
/<?php echo NTemplateHelpers::escapeXml($clanek['nahled']) ?>" length="<?php echo NTemplateHelpers::escapeXml($clanek['nahled_velikost']) ?>
" type="<?php echo NTemplateHelpers::escapeXml($clanek['nahled_type']) ?>"/>
</item>
<?php $iterations++; endforeach ?>
</channel>
</rss>
示例4: list
<?php //netteCache[01]000359a:2:{s:4:"time";s:21:"0.47953800 1430304550";s:9:"callbacks";a:2:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:70:"/home/svn/repos/gymfed/trunk/app/GisModule/templates/M2m/default.latte";i:2;i:1419947293;}i:1;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:20:"NFramework::REVISION";i:2;s:30:"dc83a21 released on 2013-07-11";}}}?><?php
// source file: /home/svn/repos/gymfed/trunk/app/GisModule/templates/M2m/default.latte
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, '0xc6ad7tz8')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
$netteHttpResponse->setHeader("Content-Type", 'application/xml') ?>
<<?php ?>?xml version="1.0" encoding="UTF-8"?>
<gis>
<?php $iterations = 0; foreach ($moznosti as $moznost): ?>
<sluzba><?php echo NTemplateHelpers::escapeXml($moznost) ?></sluzba>
<?php $iterations++; endforeach ?>
</gis>
示例5: list
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, 'zn9cta3x3p')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
$netteHttpResponse->setHeader("Content-Type", 'application/xml') ?>
<<?php ?>?xml version="1.0" encoding="UTF-8"?>
<gis>
<?php $iterations = 0; foreach ($seznam_akci as $akce): ?>
<akce>
<id><?php echo NTemplateHelpers::escapeXml($akce->id) ?></id>
<nazev><?php echo NTemplateHelpers::escapeXml($akce->nazev) ?></nazev>
<od><?php echo NTemplateHelpers::escapeXml($template->date($akce->od, 'Y-m-d')) ?></od>
<do><?php echo NTemplateHelpers::escapeXml($template->date($akce->do, "Y-m-d")) ?></do>
<misto><?php echo NTemplateHelpers::escapeXml($akce->misto) ?></misto>
<organizator><?php echo NTemplateHelpers::escapeXml($akce->organizator) ?></organizator>
<sport><?php echo NTemplateHelpers::escapeXml($akce->sport) ?></sport>
<popis><?php echo NTemplateHelpers::escapeXml($akce->popis) ?></popis>
</akce>
<?php $iterations++; endforeach ?>
</gis>