46 public function validate( $name, $value, array $settings, array $options ) {
49 if ( in_array( $value, $values,
true ) ) {
51 if ( isset( $settings[self::PARAM_DEPRECATED_VALUES][$value] ) ) {
52 $this->callbacks->recordCondition(
54 'flag' => $settings[self::PARAM_DEPRECATED_VALUES][$value],
63 if ( !isset( $options[
'values-list'] ) &&
72 public function getEnumValues( $name, array $settings, array $options ) {
76 public function stringifyValue( $name, $value, array $settings, array $options ) {
77 if ( !is_array( $value ) ) {
78 return parent::stringifyValue( $name, $value, $settings, $options );
81 foreach ( $value as $v ) {
82 if ( strpos( $v,
'|' ) !==
false ) {
83 return "\x1f" . implode(
"\x1f", $value );
86 return implode(
'|', $value );