%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/knwn/wp-content/plugins/ac-addon-acf/classes/Search/
Upload File :
Create Path :
Current File : /var/www/knwn/wp-content/plugins/ac-addon-acf/classes/Search/Select.php

<?php

namespace ACA\ACF\Search;

use AC\Helper\Select\Options;
use ACP\Search\Comparison\Meta;
use ACP\Search\Comparison\Values;
use ACP\Search\Operators;

class Select extends Meta
	implements Values {

	/** @var array */
	private $choices;

	public function __construct( $meta_key, $type, $choices ) {
		$operators = new Operators( [
			Operators::EQ,
			Operators::NEQ,
			Operators::IS_EMPTY,
			Operators::NOT_IS_EMPTY,
		] );

		$this->choices = $choices;

		parent::__construct( $operators, $meta_key, $type );
	}

	public function get_values() {
		return Options::create_from_array( $this->choices );
	}

}

Zerion Mini Shell 1.0