Documentation

rex_url
in package

Utility class to generate relative URLs.

Tags
author

gharlan

Table of Contents

Properties

$pathprovider  : rex_path_default_provider

Methods

addonAssets()  : non-empty-string
Returns the url to the assets folder of the given addon, which contains all assets required by the addon to work properly.
assets()  : non-empty-string
Returns the url to the assets folder.
backend()  : non-empty-string
Returns the url to the backend.
backendController()  : non-empty-string
Returns the url to the backend-controller (index.php from backend).
backendPage()  : non-empty-string
Returns the url to a backend page.
base()  : non-empty-string
Returns a base url.
coreAssets()  : non-empty-string
Returns the url to the assets folder of the core, which contains all assets required by the core to work properly.
currentBackendPage()  : non-empty-string
Returns the url to the current backend page.
frontend()  : non-empty-string
Returns the url to the frontend.
frontendController()  : non-empty-string
Returns the url to the frontend-controller (index.php from frontend).
init()  : void
Initializes the class.
media()  : non-empty-string
Returns the url to the media-folder.
pluginAssets()  : non-empty-string
Returns the url to the assets folder of the given plugin of the given addon.

Properties

Methods

addonAssets()

Returns the url to the assets folder of the given addon, which contains all assets required by the addon to work properly.

public static addonAssets(string $addon[, string $file = '' ]) : non-empty-string
Parameters
$addon : string

Addon

$file : string = ''

File

Tags
see
assets()
Return values
non-empty-string

assets()

Returns the url to the assets folder.

public static assets([string $file = '' ]) : non-empty-string
Parameters
$file : string = ''

File

Return values
non-empty-string

backend()

Returns the url to the backend.

public static backend([string $file = '' ]) : non-empty-string
Parameters
$file : string = ''

File

Return values
non-empty-string

backendController()

Returns the url to the backend-controller (index.php from backend).

public static backendController([array<string|int, mixed> $params = [] ][, bool $escape = true ]) : non-empty-string
Parameters
$params : array<string|int, mixed> = []

Params

$escape : bool = true

Flag whether the argument separator "&" should be escaped (&)

Return values
non-empty-string

backendPage()

Returns the url to a backend page.

public static backendPage(string $page[, array<string|int, mixed> $params = [] ][, bool $escape = true ]) : non-empty-string
Parameters
$page : string

Page

$params : array<string|int, mixed> = []

Params

$escape : bool = true

Flag whether the argument separator "&" should be escaped (&)

Return values
non-empty-string

base()

Returns a base url.

public static base([string $file = '' ]) : non-empty-string
Parameters
$file : string = ''

File

Return values
non-empty-string

coreAssets()

Returns the url to the assets folder of the core, which contains all assets required by the core to work properly.

public static coreAssets([string $file = '' ]) : non-empty-string
Parameters
$file : string = ''

File

Return values
non-empty-string

currentBackendPage()

Returns the url to the current backend page.

public static currentBackendPage([array<string|int, mixed> $params = [] ][, bool $escape = true ]) : non-empty-string
Parameters
$params : array<string|int, mixed> = []

Params

$escape : bool = true

Flag whether the argument separator "&" should be escaped (&)

Return values
non-empty-string

frontend()

Returns the url to the frontend.

public static frontend([string $file = '' ]) : non-empty-string
Parameters
$file : string = ''

File

Return values
non-empty-string

frontendController()

Returns the url to the frontend-controller (index.php from frontend).

public static frontendController([array<string|int, mixed> $params = [] ][, bool $escape = true ]) : non-empty-string
Parameters
$params : array<string|int, mixed> = []

Params

$escape : bool = true

Flag whether the argument separator "&" should be escaped (&)

Return values
non-empty-string

media()

Returns the url to the media-folder.

public static media([string $file = '' ]) : non-empty-string
Parameters
$file : string = ''

File

Return values
non-empty-string

pluginAssets()

Returns the url to the assets folder of the given plugin of the given addon.

public static pluginAssets(string $addon, string $plugin[, string $file = '' ]) : non-empty-string
Parameters
$addon : string

Addon

$plugin : string

Plugin

$file : string = ''

File

Tags
see
assets()
Return values
non-empty-string

        
On this page

Search results