public function param($paramname, $newvalue = '') {
        if (func_num_args() > 1) {
            // Set new value.
            $this->params(array($paramname => $newvalue));
        }
        if (isset($this->params[$paramname])) {
            return $this->params[$paramname];
        } else {
            return null;
        }
    }
public function param($paramname, $newvalue = '') {
        if (func_num_args() > 1) {
            // Set new value.
            $this->params(array($paramname => $newvalue));
        }
        if (isset($this->params[$paramname])) {
            return $this->params[$paramname];
        } else {
            return null;
        }
    }
public function param ( $ paramname , $ newvalue = '' ) { if ( func_num_args ( ) > 1 ) { // Set new value. $ this -> params ( array ( $ paramname => $ newvalue ) ) ; } if ( isset ( $ this -> params [ $ paramname ] ) ) { return $ this -> params [ $ paramname ] ; } else { return null ; } }
Add a param to the params for this url.

The added param overrides existing one if they have the same name.

@param string $paramname name
@param string $newvalue Param value. If new value specified current value is overriden or parameter is added
@return mixed string parameter value, null if parameter does not exist
Add a param to the params for this url .