PHP 클래스 HTMLPurifier_URI, yii

파일 보기 프로젝트 열기: yiisoft/yii 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$fragment
$host
$path
$port
$query
$scheme
$userinfo

공개 메소드들

메소드 설명
__construct ( string $scheme, string $userinfo, string $host, integer $port, string $path, string $query, string $fragment )
getSchemeObj ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_URIScheme Retrieves a scheme object corresponding to the URI's scheme/default
isBenign ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean Returns true if this URL should be considered a 'benign' URL, that is:
isLocal ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean Returns true if this URL might be considered a 'local' URL given the current context. This is true when the host is null, or when it matches the host supplied to the configuration.
toString ( ) : string Convert URI back to string
validate ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean Generic validation method applicable for all schemes. May modify this URI in order to get it into a compliant form.

메소드 상세

__construct() 공개 메소드

public __construct ( string $scheme, string $userinfo, string $host, integer $port, string $path, string $query, string $fragment )
$scheme string
$userinfo string
$host string
$port integer
$path string
$query string
$fragment string

getSchemeObj() 공개 메소드

Retrieves a scheme object corresponding to the URI's scheme/default
public getSchemeObj ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_URIScheme
$config HTMLPurifier_Config
$context HTMLPurifier_Context
리턴 HTMLPurifier_URIScheme Scheme object appropriate for validating this URI

isBenign() 공개 메소드

- It is a local URL (isLocal), and - It has a equal or better level of security
public isBenign ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean
$config HTMLPurifier_Config
$context HTMLPurifier_Context
리턴 boolean

isLocal() 공개 메소드

Note that this does not do any scheme checking, so it is mostly only appropriate for metadata that doesn't care about protocol security. isBenign is probably what you actually want.
public isLocal ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean
$config HTMLPurifier_Config
$context HTMLPurifier_Context
리턴 boolean

toString() 공개 메소드

Convert URI back to string
public toString ( ) : string
리턴 string URI appropriate for output

validate() 공개 메소드

Generic validation method applicable for all schemes. May modify this URI in order to get it into a compliant form.
public validate ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean
$config HTMLPurifier_Config
$context HTMLPurifier_Context
리턴 boolean True if validation/filtering succeeds, false if failure

프로퍼티 상세

$fragment 공개적으로 프로퍼티

public $fragment

$host 공개적으로 프로퍼티

public $host

$path 공개적으로 프로퍼티

public $path

$port 공개적으로 프로퍼티

public $port

$query 공개적으로 프로퍼티

public $query

$scheme 공개적으로 프로퍼티

public $scheme

$userinfo 공개적으로 프로퍼티

public $userinfo