Extension:PhpTags/zh

PhpTags扩展允许用户使用带PHP语法的魔术表达式，它允许您创建和使用兼容但不独立的MediaWiki扩展，设计适用于扩展设计时的初步测试. 更多……

描述
The PhpTags extension has its own the runtime environment PHP code which supports scalar types, arrays, variables, operators, control structures. It also supports constants, functions and objects but it does not implement any of them except for some language constructs.

When using a function, object or constant PhpTags calls corresponding extension. Therefore, a set of constants, functions, objects and actions that they produce only depend on additionally installed compatible extensions which can be found here.

PhpTags designed so to be as similar to native PHP, therefore you should have the illusion of direct execution PHP code although this never happens.

用法
The code should be placed between the tags  and. It can be located in any namespace if it is allowed by the variable.

它将显示：

 Hello world!!!

预览
 * 功能 执行于扩展:PhpTags_Functions. 更多详细信息可见此处.

可选安装
@todo


 * Php标签代码编辑器
 * Php标签除错器

附加安装
The PhpTags extension (core) implements magic expressions only and not, for instance, any PHP function.

For additional features such as functions, you can install additional extensions which are compatible with the magic expressions of the PhpTags extension.

主要的：


 * PhpTags Wiki - lets you query various data from MediaWiki core
 * PhpTags Functions - contains many functions for data processing
 * PhpTags Widgets - displays the data in different ways

Others are Extension:PhpTags SMW and Extension:PhpTags Storage.

配置变量

 * $wgPhpTagsMaxLoops: Maximum number of allowed loops (by default it is 1000 loops)
 * $wgPhpTagsNamespaces: Array of namespaces in which the PhpTags extension is allowed to use. Boolean  allows usage in all namespaces (it is set by default)
 * $wgPhpTagsBytecodeExptime: Storage time of the compiled bytecode in cache, by default it is 2592000 seconds (30 days)