PHP 클래스 think\response\View

상속: extends think\Response
파일 보기 프로젝트 열기: top-think/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$contentType
$options 输出参数
$replace
$vars

공개 메소드들

메소드 설명
assign ( mixed $name, mixed $value = '' ) 模板变量赋值
getVars ( string $name = null ) : mixed 获取视图变量
replace ( string | array $content, string $replace = '' ) 视图内容替换

보호된 메소드들

메소드 설명
output ( mixed $data ) : mixed 处理数据

메소드 상세

assign() 공개 메소드

模板变量赋值
public assign ( mixed $name, mixed $value = '' )
$name mixed 变量名
$value mixed 变量值

getVars() 공개 메소드

获取视图变量
public getVars ( string $name = null ) : mixed
$name string 模板变量
리턴 mixed

output() 보호된 메소드

处理数据
protected output ( mixed $data ) : mixed
$data mixed 要处理的数据
리턴 mixed

replace() 공개 메소드

视图内容替换
public replace ( string | array $content, string $replace = '' )
$content string | array 被替换内容(支持批量替换)
$replace string 替换内容

프로퍼티 상세

$contentType 보호되어 있는 프로퍼티

protected $contentType

$options 보호되어 있는 프로퍼티

输出参数
protected $options

$replace 보호되어 있는 프로퍼티

protected $replace

$vars 보호되어 있는 프로퍼티

protected $vars