Свойство | Тип | Описание | |
---|---|---|---|
$if_filter | boolean | 是否对GET/POST/REQUEST/COOKIE参数进行转意 | |
$is_ajax |
Свойство | Тип | Описание | |
---|---|---|---|
$config | |||
$model | |||
$template_dir | |||
$tpl_var | |||
$traceInfo |
Метод | Описание | |
---|---|---|
__construct ( Swoole $swoole ) | ||
__destruct ( ) | ||
assign ( $key, $value ) | ||
display ( string $tpl_file = '' ) | render template file, then display it. | |
fetch ( $tpl_file = '' ) | ||
json ( string $data = '', integer $code, string $message = '' ) : string | 输出JSON字串 | |
message ( $code, $msg = 'success' ) | ||
showTrace ( ) : string | 显示跟踪信息 | |
value ( $array, $key, $default = '', $intval = false ) |
Метод | Описание | |
---|---|---|
showTime ( ) : string | 显示运行时间和内存占用 | |
trace ( $title, $value = '' ) | 跟踪信息 |
public bool $if_filter | ||
Результат | boolean |