本文整理汇总了PHP中CostbenefitprojectionHelper::htmlEscape方法的典型用法代码示例。如果您正苦于以下问题:PHP CostbenefitprojectionHelper::htmlEscape方法的具体用法?PHP CostbenefitprojectionHelper::htmlEscape怎么用?PHP CostbenefitprojectionHelper::htmlEscape使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CostbenefitprojectionHelper
的用法示例。
在下文中一共展示了CostbenefitprojectionHelper::htmlEscape方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: escape
/**
* Escapes a value for output in a view script.
*
* @param mixed $var The output to escape.
*
* @return mixed The escaped value.
*/
public function escape($var, $sorten = false, $length = 40)
{
// use the helper htmlEscape method instead.
return CostbenefitprojectionHelper::htmlEscape($var, $this->_charset, $sorten, $length);
}
示例2: escape
/**
* Escapes a value for output in a view script.
*
* @param mixed $var The output to escape.
*
* @return mixed The escaped value.
*/
public function escape($var)
{
// use the helper htmlEscape method instead.
return CostbenefitprojectionHelper::htmlEscape($var, $this->_charset);
}
示例3: foreach
?>
</option>
<?php
foreach ($this->headers as $value => $option) {
?>
<?php
$selected = strtolower($option) == strtolower($title) || strtolower($option) == strtolower($name) ? 'selected="selected"' : '';
?>
<option value="<?php
echo CostbenefitprojectionHelper::htmlEscape($value);
?>
" class="required" <?php
echo $selected;
?>
><?php
echo CostbenefitprojectionHelper::htmlEscape($option);
?>
</option>
<?php
}
?>
</select>
</div>
</div>
<?php
}
?>
<div class="form-actions">
<input class="btn btn-primary" type="button" value="<?php
echo JText::_('COM_COSTBENEFITPROJECTION_IMPORT_CONTINUE');
?>