TimeTrex API Manual

Environment
in package

Table of Contents

$template_compile_dir  : mixed
$template_dir  : mixed
getAPIBaseURL()  : mixed
Returns the BASE_URL for the API functions.
getAPIURL()  : string
getBasePath()  : string
getBaseURL()  : mixed
getCookieBaseURL()  : mixed|string
getDefaultInterfaceBaseURL()  : mixed
Due to how the legacy interface is handled, we need to use the this function to determine the URL to redirect too, as the base_url needs to be /interface most of the time, for images and such to load properly.
getHostName()  : string
getImagesPath()  : string
getImagesURL()  : string
getLogBasePath()  : string
getStorageBasePath()  : string
stripBadPathChars()  : mixed
stripDuplicateSlashes()  : mixed
Remove duplicate slashes from URLs and file paths.

Properties

$template_compile_dir

protected static mixed $template_compile_dir = 'templates_c'

Methods

getAPIBaseURL()

Returns the BASE_URL for the API functions.

public static getAPIBaseURL([null $api = null ]) : mixed
Parameters
$api : null = null
Return values
mixed

getAPIURL()

public static getAPIURL( $api) : string
Parameters
$api :
Return values
string

getCookieBaseURL()

public static getCookieBaseURL([null $api = null ]) : mixed|string
Parameters
$api : null = null
Return values
mixed|string

getDefaultInterfaceBaseURL()

Due to how the legacy interface is handled, we need to use the this function to determine the URL to redirect too, as the base_url needs to be /interface most of the time, for images and such to load properly.

public static getDefaultInterfaceBaseURL() : mixed
Return values
mixed

getImagesPath()

public static getImagesPath() : string
Return values
string

getImagesURL()

public static getImagesURL() : string
Return values
string

getLogBasePath()

public static getLogBasePath() : string
Return values
string

getStorageBasePath()

public static getStorageBasePath() : string
Return values
string

stripBadPathChars()

public static stripBadPathChars(mixed $path) : mixed
Parameters
$path : mixed
Return values
mixed

stripDuplicateSlashes()

Remove duplicate slashes from URLs and file paths.

public static stripDuplicateSlashes( $path) : mixed
Parameters
$path :
Return values
mixed

Search results