Adds the value of checked checkboxes the values with the name of this form control as key.

@param array $values The values.
768390
public function getSetValuesBase(array &$values): void
  {
    if ($this->name==='')
    {
      $tmp = &$values;
    }
    else
    {
      $values[$this->name] = [];
      $tmp                 = &$values[$this->name];
    }

    foreach ($this->options as $i => $option)
    {
      // Get the (database) ID of the option.
      $key = $option[$this->keyKey];

      // Get the original value (i.e. the option is checked or not).
      $tmp[$key] = (!empty($option[$this->checkedKey]));
    }
  }
299950
public static function setSettings( array $values )
	{
		foreach ($values as $name => $value)
			self::setSetting($name, $value);
	}
542604
public function withBodyParams(array $values)
    {
        $params = $this->getBodyParams();
        foreach ($values as $key => $value) {
            $params[$key] = $value;
        }
        $this->bodyParams = $params;
    }
451182
public function addProperties(array $values)
    {
        foreach ($values as $key => $value) {
            $this->add($key, $value);
        }

        return $this;
    }
1328418
protected function addNewValues(array $selections, array $values)
    {
        if ($this->isAllowAdd()) {
            foreach ($values as $value) {
                if (!\in_array($value, $selections) && !\in_array((string) $value, $selections)) {
                    $selections[] = (string) $value;
                }
            }
        }

        return $selections;
    }
1336380
public function setValues($values=array()) {
		return $this->_addOrSetValues($values, function(HtmlTD &$cell,$value){$cell->setValue($value);});
	}
243125
public function setValues(array $values)
    {
        $this->values = array();
        foreach ($values as $value) {
            $this->addValue($value);
        }
        return $this;
    }
1035545
protected function setCheckboxesAttributes($value, $checkboxes)
    {
        foreach ($value as $name => $spec) {
            if (is_numeric($spec)) {
                $spec = $name;
                $name = 0;
            }
            if (is_numeric($name)) {
                if (isset($checkboxes[$spec])) {
                    /* @var $box Checkbox */
                    $box = is_array($checkboxes[$spec])
                        ? $checkboxes[$spec]['__all__']
                        : $checkboxes[$spec];
                    $box->setAttribute('checked', false);
                }
                continue;
            }
            $this->setCheckboxesAttributes($spec, $checkboxes[$name]);
        }
    }
1254462
protected function addToCommandArray($values)
    {
        foreach ($values as $key => $value) {
            $this->commandArray[$key] = $value;
        }
    }
1071695
public function addAll($values)
    {
        foreach ($values as $key => $value)
            $this->set($key, $value);
        return $this;
    }
188349
protected function bindValues($values) {
        if(is_array($values)) {
            foreach($values as $i => $value) {
                if(is_numeric($value) && intval($value) == $value && $value[0] != 0) {$type = PDO::PARAM_INT; $value = intval($value);}
                elseif(is_null($value) || $value === 'NULL') {$type = PDO::PARAM_NULL; $value = NULL;}
                elseif(is_bool($value)) {$type = PDO::PARAM_BOOL;}
                else{$type = PDO::PARAM_STR;}
                $this->query->bindValue(intval($i + 1), $value, $type);
            }
        }
    }
931876
protected function setValidation($values)
    {
        foreach ($values as $validation) {
            $value = isset($validation->value) ? $validation->value : true;

            $this->validation[$validation->rule] = $value;
        }
    }
1235715
public function mergeValuesBase(array $values): void
  {
    if (array_key_exists($this->name, $values))
    {
      $this->setValuesBase($values);
    }
  }
886048
private function bindUntypedValues(array $values)
    {
        $params = [];
        $types  = str_repeat('s', count($values));

        foreach ($values as &$v) {
            $params[] =& $v;
        }

        return $this->_stmt->bind_param($types, ...$params);
    }
374566
public function setFieldValues(array $values)
    {
        foreach ($values as $name => $value) {
            $this->setFieldValue($name, $value);
        }
        return $this;
    }
340015
protected function setFieldset($values)
    {
        foreach ($values as $name => $field) {
            $this->fields[$name] = $field;
        }
    }
402072
protected function setSubmittedValues()
    {
        parent::setSubmittedValues();
        $submittedValues = $this->submittedValues;
        $this->submittedValues = array();

        foreach ($this->acumulusConfig->getKeys() as $key) {
            if (!$this->addIfIsset($this->submittedValues, $key, $submittedValues)) {
                // Add unchecked checkboxes and empty arrays,but only if they
                // were defined on the form.
                if ($this->isKey($key)) {
                    if ($this->isCheckbox($key)) {
                        $this->submittedValues[$key] = '';
                    } elseif ($this->isArray($key)) {
                        $this->submittedValues[$key] = array();
                    }
                }
            }
        }
    }