27 public function validate( $name, $value, array $settings, array $options ) {
28 $value = strtolower( $value );
29 if ( in_array( $value, self::$TRUEVALS,
true ) ) {
32 if ( $value ===
'' || in_array( $value, self::$FALSEVALS,
true ) ) {
37 'truevals' => self::$TRUEVALS,
38 'falsevals' => array_merge( self::$FALSEVALS, [
'the empty string' ] ),