Set the fieldsets

@param   Fieldset[] $values The fieldsets

@return  void
340015
protected function setFieldset($values)
    {
        foreach ($values as $name => $field) {
            $this->fields[$name] = $field;
        }
    }
827449
final public function setValues(array $values) {
		if (is_array($values)) {
			foreach (array_keys($this->toArray()) as $key) {
				if (array_key_exists($key, $values)) {
					ObjectMixin::set($this, $key, $values[$key]);
				}
			}
		}
	}
102368
public function setParameters($values) {
    foreach ($values as $name => $value) {
      $this->setParameter($name, $value);
    }
  }
865091
public function setValues(array $values = [])
    {
        $this->values = array_map(function($value) {
            // We need to make sure all values given to a batch modification are
            // strings, otherwise we'll receive an LDAP exception when
            // we try to process the modification.
            return (string) $value;
        }, $values);

        return $this;
    }
1077036
public void setValues(final Set<String> values) {
        getValues().clear();
        if (values == null) {
            return;
        }
        getValues().addAll(values);
    }
175887
protected function setQueryFields(array $fields)
    {
        $this->queryFields = array();
        foreach ($fields as $field => $included) {
            if ($included) $this->queryFields[$field] = 1;
        }
    }
1336380
public function setValues($values=array()) {
		return $this->_addOrSetValues($values, function(HtmlTD &$cell,$value){$cell->setValue($value);});
	}
1315997
public function set(array $values)
    {
        $this->decoded = array_merge($this->decoded, $values);

        $this->value = json_encode($this->decoded);

        return $this;
    }
76926
protected function setFields($fields) 
    {
    	foreach ($fields as $name => $value) {
            $property = '_' . $name;
            if (property_exists($this, $property)) $this->$property = $value;
        }
    }
128700
public final void setValues(@Nullable final Set<String> values) {
        if (values != null && !values.equals(this.values)) {
            this.values = values;
            persistSet(this.values);
            notifyChanged();
        }
    }
747898
public function set($values, $kwargs = [])
    {
        if (!$this->through->getMeta()->autoCreated) {
            throw new AttributeError(
                sprintf(
                    "Cannot set values on a ManyToManyField which specifies an intermediary model. 
                Use %s's Manager instead.",
                    $this->through->getMeta()->getModelName()
                )
            );
        }

        $clear = ArrayHelper::getValue($kwargs, 'clear', false);

        if ($clear) {
            $this->clear();
            $this->addItems($this->fromFieldName, $this->toFieldName, $values);
        } else {
            $oldIds = $this->asArray([$this->toField->getRelatedField()->getAttrName()], true, true)
                ->getResults();

            $newObjects = [];
            foreach ($values as $value) {
                if ($value instanceof Model) {
                    $fkVal = $this->toField->getForeignRelatedFieldsValues($value)[0];
                } else {
                    $fkVal = $value;
                }

                if (in_array($fkVal, $oldIds)) {
                    unset($oldIds[array_search($fkVal, $oldIds)]);
                } else {
                    $newObjects[] = $value;
                }
            }

            $this->remove(...$oldIds);
            $this->add(...$newObjects);
        }
    }
530938
public function setFields(array $fields)
    {
        parent::setFields($fields);
        if (empty($this->batchId)) {
            $this->batchId = null;
        }

        if (isset($fields['_embedded']['messages'])) {
            $this->messages = $fields['_embedded']['messages'];
        }
    }
1013088
public function setValues(array $values)
    {
        foreach ($values as $key => $value) {
            if (is_integer($value)) {
                // cast integer values silenty to a double value.
                $values[$key] = $value = (double) $value;
            }
            $this->checkType('double', $value, true);
        }
        parent::setValues($values);
    }
157331
public function setFields($fields)
    {
        foreach ($fields as $name => $value) {
            $this->parameters->addPost($name, $value);
        }
    }
1237781
public function setAttempts($values)
    {
        $this->setAttribute('attempts', []);

        foreach ($values as $value) {
            $this->addAttempt($value);
        }

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

        return $this;
    }
1328816
public function setFields(array $fields)
    {
        foreach ($fields as $name => $value) {
            $this->setField($name, $value);
        }

        $this->prepareQuery();

        return $this;
    }