bbcode.constants.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 470 行
HTML
470 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Predefined Constants</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="bbcode.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.bbcode.html">BBCode Functions</a></div> <div class="up"><a href="book.bbcode.html">BBCode</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Predefined Constants</h1> <p class="simpara">The constants below are defined by this extension, andwill only be available when the extension has eitherbeen compiled into PHP or dynamically loaded at runtime.</p> <dl> <dt> <span class="term"> <b><tt>BBCODE_TYPE_NOARG</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> This BBCode tag does not accept any arguments. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_TYPE_SINGLE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> This BBCode tag does not have a corresponding close tag. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_TYPE_ARG</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> This BBCode tag need an argument. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_TYPE_OPTARG</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> This BBCode tag accept an optional argument. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_TYPE_ROOT</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> This BBCode tag is the special tag root (nesting level 0). </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_FLAGS_ARG_PARSING</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> This BBCode tag require argument sub-parsing (the argument is also parsed by the BBCode extension). As Of 0.10.2 another parser can be used as argument parser. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_FLAGS_CDATA_NOT_ALLOWED</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> This BBCode Tag does not accept content (it voids it automatically). </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_FLAGS_SMILEYS_ON</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This BBCode Tag accepts smileys. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_FLAGS_SMILEYS_OFF</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This BBCode Tag does not accept smileys. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_FLAGS_ONE_OPEN_PER_LEVEL</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This BBCode Tag automatically closes if another tag of the same type is found at the same nesting level. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_FLAGS_REMOVE_IF_EMPTY</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This BBCode Tag is automatically removed if content is empty it allows to produce ligther HTML. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_FLAGS_DENY_REOPEN_CHILD</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.3 </span> <dd> <span class="simpara"> This BBCode Tag does not allow unclosed childs to reopen when automatically closed. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_ARG_DOUBLE_QUOTE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This is a parser option allowing argument quoting with double quotes (") </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_ARG_SINGLE_QUOTE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This is a parser option allowing argument quoting with single quotes (') </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_ARG_HTML_QUOTE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This is a parser option allowing argument quoting with HTML version of double quotes (&quot;) </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_ARG_QUOTE_ESCAPING</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 1.0.2 </span> <dd> <span class="simpara"> This is a parser option allowing argument quotes to be escaped this permit the quote delimiter to be found in the string escaping character is \ it can escape any quoting caracter or itself, if found in front of a non escapable character, it will be dropped. Default behaviour is not to use escaping. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_AUTO_CORRECT</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This is a parser option changing the way errors are treated. It automatically closes tag in the order they are opened. And treat tags with only an open tag as if there were a close tag present. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_CORRECT_REOPEN_TAGS</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This is a parser option changing the way errors are treated. It automatically reopens tag if close tags are not in the good order. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_DISABLE_TREE_BUILD</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This is a parser option disabling the BBCode parsing it can be useful if only the "smiley" replacement must be used. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_DEFAULT_SMILEYS_ON</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This is a parser option setting smileys to ON if no flag is given at tag level. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_DEFAULT_SMILEYS_OFF</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This is a parser option setting smileys to OFF if no flag is given at tag level. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_FORCE_SMILEYS_OFF</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This is a parser option disabling completely the smileys parsing. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_SMILEYS_CASE_INSENSITIVE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.3 </span> <dd> <span class="simpara"> Use a case insensitive Detection for smileys instead of a simple binary search. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_SET_FLAGS_SET</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This permits to SET the complete flag set on a parser. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_SET_FLAGS_ADD</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This permits to switch a flag set ON on a parser. </span> </dd> </dt> <dt> <span class="term"> <b><tt>BBCODE_SET_FLAGS_REMOVE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) - since 0.10.2 </span> <dd> <span class="simpara"> This permits to switch a flag set OFF on a parser. </span> </dd> </dt> </dl></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="bbcode.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.bbcode.html">BBCode Functions</a></div> <div class="up"><a href="book.bbcode.html">BBCode</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?