PHP 클래스 Prado\Web\Javascripts\TJavaScriptLiteral

Since Prado 3.2 all the data that gets sent clientside inside a javascript statement is encoded by default to avoid any kind of injection. Sometimes there's the need to bypass this encoding and send raw javascript code. To ensure that a string doesn't get encoded by {@link TJavaScript::encode()}, construct a new TJavaScriptLiteral: a javascript test string $js="alert('hello')"; the string in $raw will not be encoded when sent clientside inside a javascript block $raw=new TJavaScriptLiteral($js); shortened form $raw=_js($js);
부터: 3.2.0
파일 보기 프로젝트 열기: pradosoft/prado

보호된 프로퍼티들

프로퍼티 타입 설명
$_s

공개 메소드들

메소드 설명
__construct ( $s )
__toString ( )
toJavaScriptLiteral ( )

메소드 상세

__construct() 공개 메소드

public __construct ( $s )

__toString() 공개 메소드

public __toString ( )

toJavaScriptLiteral() 공개 메소드

public toJavaScriptLiteral ( )

프로퍼티 상세

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

protected $_s