\rex_url

Utility class to generate relative URLs.

Summary

Methods
Properties
Constants
init()
base()
frontend()
frontendController()
backend()
backendController()
backendPage()
currentBackendPage()
media()
assets()
coreAssets()
addonAssets()
pluginAssets()
No public properties found
No constants found
No protected methods found
$pathprovider
N/A
No private methods found
No private properties found
N/A

Properties

Methods

init()

init(\rex_path_default_provider  $pathprovider) : mixed

Initializes the class.

Parameters

\rex_path_default_provider $pathprovider

A path provider

Returns

mixed —

base()

base(string  $file = '') : string

Returns a base url.

Parameters

string $file

File

Returns

string —

frontend()

frontend(string  $file = '') : string

Returns the url to the frontend.

Parameters

string $file

File

Returns

string —

frontendController()

frontendController(array  $params = [], bool  $escape = true) : string

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

Parameters

array $params

Params

bool $escape

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

Returns

string —

backend()

backend(string  $file = '') : string

Returns the url to the backend.

Parameters

string $file

File

Returns

string —

backendController()

backendController(array  $params = [], bool  $escape = true) : string

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

Parameters

array $params

Params

bool $escape

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

Returns

string —

backendPage()

backendPage(string  $page, array  $params = [], bool  $escape = true) : string

Returns the url to a backend page.

Parameters

string $page

Page

array $params

Params

bool $escape

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

Returns

string —

currentBackendPage()

currentBackendPage(array  $params = [], bool  $escape = true) : string

Returns the url to the current backend page.

Parameters

array $params

Params

bool $escape

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

Returns

string —

media()

media(string  $file = '') : string

Returns the url to the media-folder.

Parameters

string $file

File

Returns

string —

assets()

assets(string  $file = '') : string

Returns the url to the assets folder.

Parameters

string $file

File

Returns

string —

coreAssets()

coreAssets(string  $file = '') : string

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

Parameters

string $file

File

Returns

string —

addonAssets()

addonAssets(string  $addon, string  $file = '') : string

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

Parameters

string $addon

Addon

string $file

File

Returns

string —

pluginAssets()

pluginAssets(string  $addon, string  $plugin, string  $file = '') : string

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

Parameters

string $addon

Addon

string $plugin

Plugin

string $file

File

Returns

string —