Sets the list operator and values; Also, adds quotes to string values.

@param string $listOperator an operator that works with a list of values
@param array $values the list of values that follows the operator
559085
private function setListOperator($listOperator, array $values)
    {
        if (empty($listOperator)) {
            throw new InvalidArgumentException('The list operator must not' .
                ' be null or empty.');
        }

        if (empty($values)) {
            throw new InvalidArgumentException('The list of values must not' .
                ' be null or empty.');
        }

        $this->listOperator = $listOperator;
        $this->listValues = $values;
    }
748826
public function setOperator($operator)
    {
        if (!in_array($operator, $this->supportedOperators)) {
            $list = implode('|', $this->supportedOperators);
            throw new InvalidArgumentException("operator has to be $list, not $operator");
        }
        $this->operator = $operator;
        $this->toStringSeparator = ' ' . strtoupper($operator) . ' ';
        return $this;
    }
225328
private static function decorateValues(array $values, $decorator = '"')
    {
        $result = [];

        foreach ($values as $key => $value) {
            $result[$key] = self::decorateValue($value, $decorator);
        }

        return $result;
    }
658682
public function set(array $values) : QueryBuilder
    {
        $this->_query[] = "SET";

        $set = [];
        foreach($values as $key => $val) {
            $set[] = $this->parseTags([$key, $val]);
        }

        $this->_query[] = implode(", ", $set);

        return $this;
    }
298657
public function setValues(array $values)
    {
        $this->getValidator()->validateRequired($values, $this->required);
        $this->values = array_merge($this->values, $values);
        
        return $this;
    }
331066
public function setShowOnValueOperator($operator = 'OR')
    {
        if ($operator != 'AND' && $operator != 'OR') {
            throw new \InvalidArgumentException('not allowed operator: "'.$operator.'" (AND / OR is allowed)');
        }

        $this->showOnValueOperator = (string) $operator;
    }
1266528
public function setExpressionOperator($expressionOperator)
    {
        if (!is_numeric($expressionOperator)) {
            $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $expressionOperator);
            throw new ArgumentNotNumericException($errMsg);
        }

        $this->expressionOperator = (integer)$expressionOperator;

        return $this;
    }
819956
public function setValues($values)
    {
        if (!is_array($values)) {
            $values = preg_split('/,\s*/', $values);
        }
        $this->values = $values;

        return $this;
    }
231239
public function setOperators(array $operators)
    {
        $invalid = [];
        if (!$this->validateOperators($operators, $invalid)) {
            throw new \InvalidArgumentException(\sprintf('Trying to set invalid operator(s) "%s" for filter "%s"', \implode(', ', $operators), $this->getName()));
        }
        $this->operators = $operators;

        return $this;
    }
649849
protected function _setOperatorString($operatorString)
    {
        if (!is_string($operatorString) && !($operatorString instanceof Stringable)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Argument is not a string or stringable object'),
                null,
                null,
                $operatorString
            );
        }

        $this->operatorString = $operatorString;
    }
1320058
protected function invalidOperatorAndValue($operator, $value)
    {
        $isOperator = in_array($operator, $this->operators);

        return is_null($value) && $isOperator && ! in_array($operator, ['=', '<>', '!=']);
    }
63601
public function setFieldOperator(string $field, string $operator = self::OPERATOR_OR): self
    {
        return $this->setFieldParam($field, 'operator', $operator);
    }
116182
public function setInitFormValues(array $values) {

		$this->initFormValues = $values;

		foreach($values as $name => $value) {
			if(isset($this->elements[$name]) && is_object($this->elements[$name])) {

				if($this->elements[$name] instanceof CheckboxElement) {
					if(empty($this->requestValues)) {
						$this->elements[$name]->setChecked($this->elements[$name]->getValue() == $value);
					}
					else {
						$this->elements[$name]->setChecked(!is_null($this->requestValues->get($name)));
					}
				}

				else if(is_null($this->elements[$name]->getValue())) {
					$this->elements[$name]->setValue($value);
				}
			}
		}

		return $this;

	}
743483
public function setInitValues(array $values)
    {
        if (isset($this->data['isSend']) == false || $this->data['isSend'] != true) {
            foreach ($this->elements as $name => $element) {
                if ($element instanceof ElementInterface) {
                    if (array_key_exists($name, $values)) {
                        $element->setValue($values[$name]);
                    }
                }
            }
        }
    }
169208
@SuppressWarnings("unchecked")
  <P> void setValues(T bean, List<String> values) {
    Collection<P> col;
    try {
      col = (Collection<P>) listType.newInstance();
    } catch (InstantiationException e) {
      throw new RuntimeException("Can't instantiate " + listType, e);
    } catch (IllegalAccessException e) {
      throw new RuntimeException("Can't access default constructor of " + listType);
    }
    for (String value : values) {
      col.add((P) converter.fromCharacters(value));
    }
    ref.writeValue(col, bean);
  }
1003295
function setValues (array $values = array())
    {
        foreach ($this->getFields() as $field)
            if (array_key_exists($field->getName(), $values))
                $field->setValue($values[$field->getName()]);
        foreach ($this->dataFields as $dataKey => $dataVal)
            if (array_key_exists($dataKey, $values))
                $this->dataFields[$dataKey] = $values[$dataKey];
    }
215893
function doOperator( $element, &$namespace, &$current_nspace, &$value, $operatorName, $operatorParameters, &$named_params )
    {
        if ( is_array( $this->Operators[$operatorName] ) )
        {
            $this->loadAndRegisterOperators( $this->Operators[$operatorName] );
        }
        $op = $this->Operators[$operatorName];
        if ( isset( $op ) )
        {
            $op->modify( $element, $this, $operatorName, $operatorParameters, $namespace, $current_nspace, $value, $named_params );
        }
        else
            $this->warning( "", "Operator \"$operatorName\" is not registered" );
    }