Class rex_url

Utility class to generate relative URLs.

Package: redaxo\core
Author: gharlan
Located at redaxo/src/core/lib/util/url.php

Methods summary

public static
# init( mixed $pathprovider )

Initializes the class.

public static string
# base( string $file = '' )

Returns a base url.

public static string
# frontend( string $file = '' )

Returns the url to the frontend.

public static string
# frontendController( array $params = [], boolean $escape = true )

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

public static string
# backend( string $file = '' )

Returns the url to the backend.

public static string
# backendController( array $params = [], boolean $escape = true )

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

public static string
# backendPage( string $page, array $params = [], boolean $escape = true )

Returns the url to a backend page.

public static string
# currentBackendPage( array $params = [], boolean $escape = true )

Returns the url to the current backend page.

public static string
# media( string $file = '' )

Returns the url to the media-folder.

public static string
# assets( string $file = '' )

Returns the url to the assets folder.

public static string
# coreAssets( string $file = '' )

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

public static string
# addonAssets( string $addon, string $file = '' )

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

public static string
# pluginAssets( string $addon, string $plugin, string $file = '' )

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

Properties summary

protected static mixed $pathprovider