PHP 클래스 Kirki_Active_Callback, kirki

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

공개 메소드들

메소드 설명
compare ( mixed $value1, mixed $value2, string $operator ) : boolean Compares the 2 values given the condition
evaluate ( WP_Customize_Setting $object ) : boolean Figure out whether the current object should be displayed or not.

비공개 메소드들

메소드 설명
evaluate_requirement ( WP_Customize_Setting $object, object $field, array $requirement ) : boolean Figure out whether the current object should be displayed or not.

메소드 상세

compare() 공개 정적인 메소드

Compares the 2 values given the condition
public static compare ( mixed $value1, mixed $value2, string $operator ) : boolean
$value1 mixed The 1st value in the comparison.
$value2 mixed The 2nd value in the comparison.
$operator string The operator we'll use for the comparison.
리턴 boolean whether The comparison has succeded (true) or failed (false).

evaluate() 공개 정적인 메소드

Figure out whether the current object should be displayed or not.
public static evaluate ( WP_Customize_Setting $object ) : boolean
$object WP_Customize_Setting The current field.
리턴 boolean