PHP Class Kirki_Active_Callback, kirki

Mostrar archivo Open project: aristath/kirki Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
evaluate_requirement ( WP_Customize_Setting $object, object $field, array $requirement ) : boolean Figure out whether the current object should be displayed or not.

Method Details

compare() public static method

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.
return boolean whether The comparison has succeded (true) or failed (false).

evaluate() public static method

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.
return boolean