public function checkPath($path = null)
    {
        if ($path === null) {
            $path = $this->path;
        }

        if (strlen($path) == 0) {
            return true;
        }

        $pattern = "/^" . $this->regex["path"] . "$/";
        $status = @preg_match($pattern, $path);

        if ($status === false) {
            throw new Ts3Exception("URI path validation failed");
        }

        return ($status == 1);
    }
public function checkPath($path = null)
    {
        if ($path === null) {
            $path = $this->path;
        }

        if (strlen($path) == 0) {
            return true;
        }

        $pattern = "/^" . $this->regex["path"] . "$/";
        $status = @preg_match($pattern, $path);

        if ($status === false) {
            throw new Ts3Exception("URI path validation failed");
        }

        return ($status == 1);
    }
Returns TRUE if the path is valid.

@param  string $path
@throws Ts3Exception
@return boolean