Class rex_path_default_provider

Utility class to generate absolute paths.

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

Methods summary

public
# __construct( string $htdocs, string $backend, boolean $provideAbsolutes )

Initializes the class.

public string
# base( string $file )

Returns the base/root path.

public string
# frontend( string $file )

Returns the path to the frontend (the document root).

public string
# frontendController( )

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

public string
# backend( string $file )

Returns the path to the backend (folder where the backend controller is placed).

public string
# backendController( )

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

public string
# media( string $file )

Returns the path to the media-folder.

public string
# assets( string $file )

Returns the path to the assets folder.

public string
# coreAssets( string $file )

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

public string
# addonAssets( string $addon, string $file )

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

public string
# pluginAssets( string $addon, string $plugin, string $file )

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

public string
# bin( string $file )

Returns the path to the bin folder.

public string
# data( string $file )

Returns the path to the data folder.

public string
# coreData( string $file )

Returns the path to the data folder of the core.

public string
# addonData( string $addon, string $file )

Returns the path to the data folder of the given addon.

public string
# pluginData( string $addon, string $plugin, string $file )

Returns the path to the data folder of the given plugin of the given addon.

public string
# cache( string $file )

Returns the path to the cache folder.

public string
# coreCache( string $file )

Returns the path to the cache folder of the core.

public string
# addonCache( string $addon, string $file )

Returns the path to the cache folder of the given addon.

public string
# pluginCache( string $addon, string $plugin, string $file )

Returns the path to the cache folder of the given plugin.

public string
# src( string $file )

Returns the path to the src folder.

public string
# core( string $file )

Returns the path to the actual core.

public string
# addon( string $addon, string $file )

Returns the base path to the folder of the given addon.

public string
# plugin( string $addon, string $plugin, string $file )

Returns the base path to the folder of the plugin of the given addon.

Properties summary

protected mixed $base
protected mixed $backend
protected mixed $provideAbsolutes