public function setParam($paramIdx=NULL, $value, $encode=FALSE) {
		
		if ($encode) {
			$value = rtrim(strtr(base64_encode(gzdeflate(json_encode($value), 9)), '+/', '-_'), '=');
		}
		
		if (!is_null($paramIdx)) {
			$this->vars[$paramIdx] = $value;
		} else {
			$this->vars[] = $value;
		}
		
	}
public function setParam($paramIdx=NULL, $value, $encode=FALSE) {
		
		if ($encode) {
			$value = rtrim(strtr(base64_encode(gzdeflate(json_encode($value), 9)), '+/', '-_'), '=');
		}
		
		if (!is_null($paramIdx)) {
			$this->vars[$paramIdx] = $value;
		} else {
			$this->vars[] = $value;
		}
		
	}
public function setParam ( $ paramIdx = NULL , $ value , $ encode = FALSE ) { if ( $ encode ) { $ value = rtrim ( strtr ( base64_encode ( gzdeflate ( json_encode ( $ value ) , 9 ) ) , '+/' , '-_' ) , '=' ) ; } if ( ! is_null ( $ paramIdx ) ) { $ this -> vars [ $ paramIdx ] = $ value ; } else { $ this -> vars [ ] = $ value ; } }
Add a param value to the URL, on index position if given and existent.

@param	mixed	Zero based position on URL path or Key name.
@param	string	Value to add.
@param	bool	Flag to encode as char-only the value.
Add a param value to the URL on index position if given and existent .