PHP Class Kirki_Active_Callback, kirki

Afficher le fichier Open project: aristath/kirki Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

evaluate() public static méthode

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.
Résultat boolean