PHP 클래스 rock\sanitize\Sanitize

상속: implements rock\base\ObjectInterface, use trait rock\base\ObjectTrait
파일 보기 프로젝트 열기: romeoz/rock-sanitize 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$rawRules rock\sanitize\rules\Rule[] List raw rules.
$recursive boolean Enable recursive mode.
$remainder string Label remainder.
$rules array List rules.

공개 메소드들

메소드 설명
__call ( $name, $arguments )
__callStatic ( $name, $arguments )
existsRule ( string $name ) : boolean Exists rule.
getRawRules ( ) : Rule[]
init ( )
parentCall ( )
sanitize ( mixed $input ) : mixed Sanitize value.
setRecursive ( boolean $enable ) Enable recursive mode.
setRemainder ( string $label ) Sets a label remainder.
setRules ( array $rules ) Sets a list rules.

보호된 메소드들

메소드 설명
attributesInternal ( $attributes )
defaultRules ( )
getInstance ( ) : static Returns instance.
getInstanceRule ( string $name, array $arguments ) : Rule Returns instance rule.
recursiveInternal ( $enable = true )
rulesInternal ( array $rules )

메소드 상세

__call() 공개 메소드

public __call ( $name, $arguments )

__callStatic() 공개 정적인 메소드

public static __callStatic ( $name, $arguments )

attributesInternal() 보호된 메소드

protected attributesInternal ( $attributes )

defaultRules() 보호된 메소드

protected defaultRules ( )

existsRule() 공개 메소드

Exists rule.
public existsRule ( string $name ) : boolean
$name string name of rule.
리턴 boolean

getInstance() 보호된 정적인 메소드

If exists {@see \rock\di\Container} that uses it.
protected static getInstance ( ) : static
리턴 static

getInstanceRule() 보호된 메소드

Returns instance rule.
protected getInstanceRule ( string $name, array $arguments ) : Rule
$name string name of rule
$arguments array
리턴 rock\sanitize\rules\Rule

getRawRules() 공개 메소드

public getRawRules ( ) : Rule[]
리턴 rock\sanitize\rules\Rule[]

init() 공개 메소드

public init ( )

parentCall() 공개 메소드

public parentCall ( )

recursiveInternal() 보호된 메소드

protected recursiveInternal ( $enable = true )

rulesInternal() 보호된 메소드

protected rulesInternal ( array $rules )
$rules array

sanitize() 공개 메소드

Sanitize value.
public sanitize ( mixed $input ) : mixed
$input mixed
리턴 mixed

setRecursive() 공개 메소드

Enable recursive mode.
public setRecursive ( boolean $enable )
$enable boolean

setRemainder() 공개 메소드

Sets a label remainder.
public setRemainder ( string $label )
$label string

setRules() 공개 메소드

Sets a list rules.
public setRules ( array $rules )
$rules array

프로퍼티 상세

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

List raw rules.
protected Rule[],rock\sanitize\rules $rawRules
리턴 rock\sanitize\rules\Rule[]

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

Enable recursive mode.
protected bool $recursive
리턴 boolean

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

Label remainder.
protected string $remainder
리턴 string

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

List rules.
protected array $rules
리턴 array