CampURI::getURI PHP Method

getURI() public method

Returns the URI string based on given URL parameter.
public getURI ( string $p_param = null, boolean $p_preview = false ) : string
$p_param string The URL parameter
$p_preview boolean If true, will keep the preview parameters in the URL
return string The URI string requested
    public function getURI($p_param = null, $p_preview = false)
    {
        $this->m_buildPath = null;
        $this->m_buildQuery = null;
        $this->m_buildQueryArray = $this->getQueryArray();
        $params = preg_split("/[\\s]+/", $p_param);
        $this->buildURI($params, $p_preview);
        if (!empty($this->m_buildQuery)) {
            return $this->m_buildPath . '?' . $this->m_buildQuery;
        }
        return $this->m_buildPath;
    }