当前位置: 首页>>代码示例>>PHP>>正文


PHP NTemplateHelpers::escapeXml方法代码示例

本文整理汇总了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>
开发者ID:krecek,项目名称:nrsn,代码行数:31,代码来源:_M2m.startovka.latte-feaa56548d8ec796d92f9e61276640d0.php

示例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>
开发者ID:krecek,项目名称:nrsn,代码行数:23,代码来源:_M2m.error.latte-728952319fe4f5bd7391aef7f95ac76a.php

示例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>
开发者ID:krecek,项目名称:nrsn,代码行数:31,代码来源:_Homepage.rss.latte-944b222503effc44ae2e9bb782037f04.php

示例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>
开发者ID:krecek,项目名称:nrsn,代码行数:25,代码来源:_M2m.default.latte-6ff0c7259d6287d4a75c48b79896a51c.php

示例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>
开发者ID:krecek,项目名称:nrsn,代码行数:30,代码来源:_M2m.akce.latte-978337be0fa3e9806addeaa66ff3f395.php


注:本文中的NTemplateHelpers::escapeXml方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。