Add POST parameter
@param string $field parameter name
@param string $value parameter value
@throw LogicException if post data is not array
@return Request self
180870
public function addPostField($field, $value) {
        if (is_null($this->postData)) {
            $this->postData = array();
        }

        if (is_array($this->postData)) {
            $this->postData[$field] = (string) $value;
            return $this;
        } else {
            throw new LogicException('cannot set field for non array');
        }
    }
7862
public function setOnInsert(string $field, $value)
    {
        $this->update();
        $this->mongoDbUpdate['$setOnInsert'][$field] = $value;

        return $this;
    }
248300
public function setField($field,$value='') {
        if(is_array($field)) {
            $data           =   $field;
        }else{
            $data[$field]   =   $value;
        }
        return $this->save($data);
    }
261205
public function set($field, $value = null)
    {
        if (! is_array($field)) {
            $field = [$field => $value];
        }

        foreach ($field as $f => $v) {
            $this->update('$set', $f, $v);
        }

        return $this;
    }
215485
public function update( $field, $value ) {
		if ( isset($this->ID) ) {
			update_post_meta($this->ID, $field, $value);
			$this->$field = $value;
		}
	}
417647
public function set(string $field, $value): Update
    {
        $this->what[$field] = $value;
        return $this;
    }
346017
public function fieldValue($field, $value)
    {
        if (!in_array($field, $this->supports)) {
            $this->supports[ ] = $field;
        }
        $this->values[ $field ] = $value;

        return $this;
    }
385783
public function addAttribute($attribute, $value)
    {
        // Escape special characters
        $value = Filter::filterAttribute($value);

        if ($this->isProperty($attribute)) {
            $this->addPropertyOnDemand($attribute, $value);
        } else {
            if ($this->hasAttribute($attribute)) {
                throw new LogicException(sprintf('The element already has "%s" attribute', $attribute));
            }

            $this->append(sprintf(' %s="%s"', $attribute, $value));
            $this->attributes[$attribute] = $value;
        }

        return $this;
    }
64544
public function addValue($field, $value) {
        $rfield = str_replace(['`', '"'], '', $field);
        $field  = Condition::safeField($field);
        $index  = isset ($this->names [ $field ]) ? $this->names [ $field ] : 0;
        $key    = ':' . $field . '_' . $index;
        if (is_string($value)) {//for bigint
            $type = \PDO::PARAM_STR;
        } else if (is_numeric($value)) {// for int float
            $type = \PDO::PARAM_INT;
        } else if (is_bool($value)) {
            $type  = \PDO::PARAM_INT;
            $value = intval($value);
        } else if (is_null($value)) {
            $type = \PDO::PARAM_NULL;
        } else {
            $type = \PDO::PARAM_STR;
        }
        $this->values []        = [$key, $value, $type, $field, $rfield];
        $this->names [ $field ] = ++$index;

        return $key;
    }
437144
public function add($var, $value)
    {
        if ($this->has($var)) {
            if (is_array($this->container[$var])) {
                $this->container[$var][] = $value;
            } else {
                throw new ModelException(sprintf("Field '%s' exists and is not an array.", $var));
            }
        } else {
            $this->container[$var] = [$value];
        }
        $this->touch();

        return $this;
    }
604762
protected function setAsString($field, $value)
    {
        if (in_array($field, $this->getColumns()) && (
                !array_key_exists($field, $this->object) ||
                $this->object[$field] !== $value
            )) {
            $this->dirtyFields[$field] = true;
        }
        $this->object[$field] = (string) $value;

        return $this;
    }
554232
public function addPostParam($param, $value = true)
  {
    // Validate
    if (!is_scalar($param))
    {
      throw new \Exception("Param name must be scalar");
    }

    // Filter
    if (is_string($value))
    {
      $value = trim($value);
    }

    // Set
    $this->postParams[trim($param)] = $value;

    return $this;
  }
448564
public function addPostParameter($name, $value)
    {
        if (!$this->hasGetPostParamValue($name, true))
        {
            $this->postParams[$name] = $value;
            return true;
        }
        else
        {
            return false;
        }
    }
969729
public function where($field, $value)
    {
        if (!isset($this->_expression[$field]) || !is_array($value) || !is_array($this->_expression[$field])) {
            $this->_expression[$field] = $value;
        } else {
            $this->_expression[$field] = array_merge_recursive($this->_expression[$field], $value);
        }

        return $this;
    }
328199
function add_field($name,$value){
		LogMaster::log("adding field: ".$name.", with value: ".$value);
		$this->data[$name]=$value;
		$this->addf[]=$name;
	}
244732
public function type($field, $value)
    {
        $this->resolver->resolveForTyping($field)->clear()->sendKeys($value);

        return $this;
    }
445192
public function setField(string $fieldName, string $value): self
    {
        if (!\is_string($value) || !\is_string($fieldName)) {
            throw new InvalidException('The field and value arguments must be of type string.');
        }
        if (\count($this->getParams()) > 0 && \key($this->getParams()) !== $fieldName) {
            throw new InvalidException('Fuzzy query can only support a single field.');
        }

        return $this->setParam($fieldName, ['value' => $value]);
    }