LimeSurvey API - Master branch

path

Table of Contents

Methods

normalize()  : string
Normalize the given path. On Windows servers backslash will be replaced with slash. Removes unnecessary double slashes and double dots. Removes last slash if it exists. Examples: path::normalize("C:\\any\\path\\") returns "C:/any/path" path::normalize("/your/path/..//home/") returns "/your/home"
rel2abs_url()  : string
Get the absolute URL path of the given one. Returns FALSE if the URL is not valid or the current directory cannot be resolved (getcwd())
url2fullPath()  : string
Resolve full filesystem path of given URL. Returns FALSE if the URL cannot be resolved
urlPathDecode()  : string
Decode URL Path
urlPathEncode()  : string
Encode URL Path

Methods

normalize()

Normalize the given path. On Windows servers backslash will be replaced with slash. Removes unnecessary double slashes and double dots. Removes last slash if it exists. Examples: path::normalize("C:\\any\\path\\") returns "C:/any/path" path::normalize("/your/path/..//home/") returns "/your/home"

public static normalize(string $path) : string
Parameters
$path : string
Return values
string

rel2abs_url()

Get the absolute URL path of the given one. Returns FALSE if the URL is not valid or the current directory cannot be resolved (getcwd())

public static rel2abs_url(string $path) : string
Parameters
$path : string
Return values
string

url2fullPath()

Resolve full filesystem path of given URL. Returns FALSE if the URL cannot be resolved

public static url2fullPath(string $url) : string
Parameters
$url : string
Return values
string

urlPathDecode()

Decode URL Path

public static urlPathDecode(string $path) : string
Parameters
$path : string
Return values
string

urlPathEncode()

Encode URL Path

public static urlPathEncode(string $path) : string
Parameters
$path : string
Return values
string

        
On this page

Search results