Add a POST parameter

@param      $param
@param bool $value

@return $this
@throws \Exception
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;
  }
1325154
function setAction( $value, $params=FALSE ) {
    $this->action['value']  = $value;
    $this->action['params'] = $this->_setParams( $params );
  }
148575
function setStatus( $value, $params=FALSE ) {
    $this->status['value']  = $value;
    $this->status['params'] = $this->_setParams( $params );
  }
614083
public function setParameter($parameter, $value)
    {
        if (is_bool($value)) {
            $value = $value ? '1' : '0';
        }

        $this->parameters[$parameter] = $value;
    }
662007
public function set($name, $value, $params = [])
    {
        $this->add(new Property($name, $value, $params));

        return $this;
    }
470227
public function appendValue($value)
    {
        $appendValue = $this->formatValue($value);
        $this->message = $this->message . $appendValue;

        return $this;
    }
100774
public function setParam($name, $value)
	{
		if (null === $this->params)
		{
			$this->params = $this->loadParams();
		}

		$this->params->set($name, $value);

		return $this;
	}
316638
public function add($name, $value = null, array $params = [])
    {
        if (is_array($value)) {
            $params = $value;
            if (isset($params['value'])) {
                $value = $params['value'];
                unset($params['value']);
            } else {
                $value = '';
            }
        }
    
        $params = array_merge($this->defaults, $params);
        $this->jar[$name] = new Cookie($name, $value, $params['expires'], $params['path'], $params['domain'], $params['secure'], $params['httponly'], $params['raw']);
        return $this;
    }
1109685
public function when($value, $true_call, $false_call = null)
    {
        if ($value) {
            $true_call($this, $value);
        } elseif ($false_call) {
            $false_call($this, $value);
        }

        return $this;
    }
1132898
public function addGetParameter($name, $value)
    {
        if (!$this->hasGetPostParamValue($name, true))
        {
            $this->getParams[$name] = $value;
            return true;
        }
        else
        {
            return false;
        }
    }
1015067
public function add($value)
    {
        if (!$value instanceof Contact) {
            throw new InvalidArgumentException(
                sprintf(
                    '%s only accepts instances of %s.',
                    __FUNCTION__, Contact::class
                )
            );
        }

        return parent::add($value);
    }
1204130
protected function addParam($key, $value = null)
	{
		if (is_null($value))
		{
			$this->params[] = $key;
		}
		else
		{
			$this->params[$key] = $value;
		}

	}
318103
public function add($key, $value)
    {
        if (!$key) {
            return $this;
        }

        $this->param[$key] = $value;

        return $this;
    }
812274
protected function memorizeParam($param, $value)
    {
        if ($this->paramsMemorizeAllowed && !$this->session->getParamsMemorizeDisabled()) {
            $this->session->setData($param, $value);
        }

        return $this;
    }
793908
public function addParam($name, $value): self
    {
        if (!isset($this->params[$name])) {
            $this->setParam($name, $value);
        }

        return $this;
    }
821882
public function addElementsStyle($param, $value) {
		foreach ($this->getElements() as $element) {
			if ($element instanceof Tag) {
				$element->addStyle($param, $value);
			}
		}
		
		return $this;
	}
472937
public function addConstructorValue($value)
    {
        $endPoint = &$this->getEndPoint();
        if (!isset($endPoint['args'])) {
            $endPoint['args'] = [];
        }
        $endPoint['args'][] = ['type' => 'value', 'item' => $value];

        return $this;
    }