Adds a new parameter

@param string $value
@param array &$params
@param int $currentParamCount

@return string
511458
public function addParam($value, &$params, $currentParamCount) {
        $count = $currentParamCount + sizeOf($params);
        $params[] = $value;
        return '?' . $count;
    }
389264
private void _buildParameter(
                    final Object value,
                    final StringBuilder stmt,
                    final List<Object> params
                    )
    {
        params.add( value );
        stmt.append( _PARAM_SIGN_ ).append( params.size() );
    }
89562
public function setTemplateParam( $param, $value )
	{
		if ( !isset( $param ) || empty( $param ) || !isset( $value ) )
		{
			trigger_error( "The parameter \$param or \$value can't be empty." );
			return false;
		}
		$this->params_template[$param] = $value;
	}
1099753
function addCurrentResult()
    {
        if ( is_array( $this->CurrentResult ) )
            $this->Results[] = $this->CurrentResult;
        return $this->CurrentResult;
    }
983771
public function param($param, $value) {
		if ($value !== null) {
			$param = rawurlencode($param);
			$value = rawurlencode($value);
			$this->params[$param] = $value;
		} else {
			if (isset($this->params[$param])) {
				unset($this->params[$param]);
			}
		}
		return $this;
	}
188538
public function increment($key, $value = 1)
    {
        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
            return $current + $value;
        });
    }
821882
public function addElementsStyle($param, $value) {
		foreach ($this->getElements() as $element) {
			if ($element instanceof Tag) {
				$element->addStyle($param, $value);
			}
		}
		
		return $this;
	}
330266
public function addPost($name, $value = null)
    {
        if (is_array($name) && $value === null) {
            $this->postParams = array_merge($this->postParams, $name);
        } else {
            $this->postParams[$name] = $value;
        }

        return $this;
    }
1273252
protected function createSeparators(int $value, $current, int $sorting): int
    {
        for ($count = 1; $count <= $value; $count++) {
            $sorting = ($sorting + 8);
            $this->createGridElement($current, 'bs_gridSeparator', $sorting);
        }

        return $sorting;
    }
45954
protected function processArray(Parameter $param, &$value)
    {
        // Convert the node if it was meant to be an array
        if (!isset($value[0])) {
            // Collections fo nodes are sometimes wrapped in an additional array. For example:
            // <Items><Item><a>1</a></Item><Item><a>2</a></Item></Items> should become:
            // array('Items' => array(array('a' => 1), array('a' => 2))
            // Some nodes are not wrapped. For example: <Foo><a>1</a></Foo><Foo><a>2</a></Foo>
            // should become array('Foo' => array(array('a' => 1), array('a' => 2))
            if ($param->getItems() && isset($value[$param->getItems()->getWireName()])) {
                // Account for the case of a collection wrapping wrapped nodes: Items => Item[]
                $value = $value[$param->getItems()->getWireName()];
                // If the wrapped node only had one value, then make it an array of nodes
                if (!isset($value[0]) || !is_array($value)) {
                    $value = array($value);
                }
            } elseif (!empty($value)) {
                // Account for repeated nodes that must be an array: Foo => Baz, Foo => Baz, but only if the
                // value is set and not empty
                $value = array($value);
            }
        }

        foreach ($value as &$item) {
            $this->recursiveProcess($param->getItems(), $item);
        }
    }
903614
protected function addNewParamToFile($param, $value)
    {
        $this->writeEnvFile($this->getEnvFile().PHP_EOL.$param.'='.$value);
    }
148575
function setStatus( $value, $params=FALSE ) {
    $this->status['value']  = $value;
    $this->status['params'] = $this->_setParams( $params );
  }
1155913
public void addValue(Object current, Object value) throws ParseException, IOException {
		// if (obj != null)
		mapper.addValue(current, value);
	}
540207
public static function truncate($value, array $params)
    {
        if (empty($params['length']) || !is_numeric($params['length'])) {
            $params['length'] = 4;
        }

        return StringHelper::truncate($value, (int)$params['length']);
    }
1252935
private function parseParameter(string $key, string $value, &$params): string
    {
        if (isset($params[$key])) {
            $par = $params[$key];
            unset($params[$key]);

            $value = $value ? $value . '_' . $par : $par;
        }

        return static::makeParam($key, $value);
    }
574781
protected function setParameter($param, $value)
    {
        $param = trim($param);
        if (!strlen($param)) {
            throw new \RuntimeException(sprintf('Invalid fluid template parameter "%s"', $param), 1481551574);
        }

        $this->parameters[$param] = $value;
    }
153015
private function _setParams($value, $params)
    {
        $strFinal = $value;
        $key = '';
        for ($i = 0; $i < strlen($strFinal); $i++) {
            if ($strFinal[$i] == ':') { // 1º
                $_a = $i + 1;
                for ($j = $_a; $j < strlen($strFinal); $j++) {
                    $isLastOne = ($j == strlen($strFinal) - 1);
                    if (in_array($strFinal[$j],
                            [
                                ' ',
                                ',',
                                '\\',
                                '\'',
                                '"'
                            ]) || $isLastOne
                    ) { // 2º
                        $_b = $j;
                        $_b = ($isLastOne) ? $_b + 1 : $_b;
                        $key = substr($strFinal, $_a, $_b - $_a);
                        $i = $_b;
                        break;
                    }
                }

                // We found the key
                if (isset($params[$key])) {
                    $langKey = $params[$key];
                    $strFinalA = substr($strFinal, 0, $_a - 1);
                    $strFinalB = substr($strFinal, $_b);
                    $strFinal = $strFinalA . $langKey . $strFinalB;
                }
            }
        }
        return $strFinal;
    }