PHP 클래스 RWMB_Sanitizer

파일 보기 프로젝트 열기: rilwis/meta-box 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$callbacks array Built-in callbacks for some specific types.

공개 메소드들

메소드 설명
checkbox ( string $value ) : integer Set the value of checkbox to 1 or 0 instead of 'checked' and empty string.
init ( ) Register hook to sanitize field value.

메소드 상세

checkbox() 공개 메소드

This prevents using default value once the checkbox has been unchecked.
public checkbox ( string $value ) : integer
$value string
리턴 integer

init() 공개 메소드

Register hook to sanitize field value.
public init ( )

프로퍼티 상세

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

Built-in callbacks for some specific types.
protected array $callbacks
리턴 array