Ip\Internal\Repository\BrowserModel::getPath PHP Method

getPath() public method

public getPath ( $secure, $subdir, $absolute = true )
    public function getPath($secure, $subdir, $absolute = true)
    {
        if ($subdir && substr($subdir, -1) != '/') {
            $subdir .= '/';
        }
        $relativePath = 'file/repository/' . $subdir;
        if ($secure) {
            $relativePath = 'file/secure/' . $subdir;
        }
        $path = $relativePath;
        if ($absolute) {
            $path = ipFile($path);
        }
        return $path;
    }