本文整理汇总了PHP中icms_core_DataFilter::filterTextareaDisplay方法的典型用法代码示例。如果您正苦于以下问题:PHP icms_core_DataFilter::filterTextareaDisplay方法的具体用法?PHP icms_core_DataFilter::filterTextareaDisplay怎么用?PHP icms_core_DataFilter::filterTextareaDisplay使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类icms_core_DataFilter
的用法示例。
在下文中一共展示了icms_core_DataFilter::filterTextareaDisplay方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: previewTarea
/**
* Filters textarea form data submitted for preview
*
* The only difference between this and displayTarea is the need to deal with $_POST input instead of database output
*
* @param string $text
* @param bool $html allow html?
* @param bool $smiley allow smileys?
* @param bool $xcode allow xoopscode?
* @param bool $image allow inline images?
* @param bool $br convert linebreaks?
* @return string
**/
public function previewTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1)
{
/* @deprecated Use icms_core_DataFilter::checkVar, instead - the events for previewTarea need to be added, first */
//icms_core_Debug::setDeprecated('icms_core_DataFilter::checkVar - type = text or html, $options1 = input', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
/* trigger all the events tied to the beforePreviewTarea event */
icms::$preload->triggerEvent('beforePreviewTarea', array(&$text, $html, $smiley, $xcode, $image, $br));
$text = icms_core_DataFilter::stripSlashesGPC($text);
if ($html = 0) {
$text = icms_core_DataFilter::filterTextareaDisplay($text, $smiley, $xcode, $image, $br);
} else {
$text = icms_core_DataFilter::filterHTMLdisplay($text, $xcode, $br);
}
/* trigger all the events tied to the afterPreviewTarea event */
icms::$preload->triggerEvent('afterPreviewTarea', array(&$text, $html, $smiley, $xcode, $image, $br));
return $text;
}