zh:devel:configuration
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
zh:devel:configuration [2017-07-20 06:05] – 223.74.133.140 | zh:devel:configuration [2017-07-20 07:41] (当前版本) – [表] 223.74.133.140 | ||
---|---|---|---|
行 34: | 行 34: | ||
---- | ---- | ||
===== 配置元数据 ===== | ===== 配置元数据 ===== | ||
- | For every setting in '' | + | 对于每一个在 |
<code php> | <code php> | ||
$meta[< | $meta[< | ||
</ | </ | ||
- | If no parameter is required for a setting class (see below), it's simply: | + | 如果一个设置类不需要参数(参见下面),那么它就是简单的: |
<code php> | <code php> | ||
行 45: | 行 45: | ||
</ | </ | ||
- | Examples: | + | 例子: |
<code php> | <code php> | ||
行 51: | 行 51: | ||
$meta[' | $meta[' | ||
$meta[' | $meta[' | ||
- | $meta[' | + | $meta[' |
$meta[' | $meta[' | ||
$meta[' | $meta[' | ||
行 58: | 行 58: | ||
==== 类 ==== | ==== 类 ==== | ||
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
==== 参数 ==== | ==== 参数 ==== | ||
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
行 100: | 行 99: | ||
这意味着多复选框将显示四个选项和一个字符串输入。 | 这意味着多复选框将显示四个选项和一个字符串输入。 | ||
- | Let's suppose also that the user inserts one or more extra values not in '' | + | 假设用户插入一个或多个额外的值,而不是在 |
- | In the next release of the plugin the author' | + | 在插件的下一个版本中,作者的插件决定在没有额外的字符串的情况下使用多复选框,但是为了向后兼容,采用: |
- | <code php> | + | <code php> |
+ | $meta[' | ||
+ | </ | ||
- | which means: | + | 这意味着: |
- | * if the user has inserted comma separated values, they will be printed in the extra string; | + | * 如果用户插入逗号分隔值,则将在额外的字符串中打印; |
- | * otherwise the extra string won't show. | + | * 否则不会显示额外的字符串。 |
- | Note also that if the user inserts comma separated values which already exist (or some of them) in '' | + | 还请注意, |
- | * they are already ticked, then the extra string will be removed and nothing else; | + | * 它们已经被勾选,然后额外的字符串将被删除,其他的都没有; |
- | * they are not already ticked, then the extra string will be removed and the relative value will be ticked. | + | * 它们还没有被勾选,然后额外的字符串将被删除,相对的值将被勾选。 |
\\ | \\ |
zh/devel/configuration.1500523522.txt.gz · 最后更改: 2017-07-20 06:05 由 223.74.133.140