WebResourcesPath
in package
WebResourcesPath class
This class is responsible for generating paths to resources and assets.
It provides a way to access common paths used in web applications.
Tags
Table of Contents
Properties
- $assets : string
- $assetsCssDirPath : string
- $assetsCssRootMainPath : string
- $assetsJsDirPath : string
- $assetsJsRootMainPath : string
- $configShring : array<string|int, mixed>|null
- $cssPath : string
- $fontPath : string
- $imagePath : string
- $jsPath : string
- $moviePath : string
- $path : string|null
- $pathSource : string
- $resources : string
- $resourcesCssDirPath : string
- $resourcesCssRootDirPath : string
- $resourcesJsDirPath : string
- $resourcesJsRootDirPath : string
- $soundPath : string
- $svgPath : string
- $webManifest : string
Methods
- __construct() : mixed
- Construct a new WebResourcesPath object.
- __get() : string
- Returns a string representation of the object.
- __toString() : string
- Returns a string representation of the object.
- all() : array<string|int, mixed>
- Returns an associative array with all paths.
Properties
$assets
private
static string
$assets
= "/" . 'storage' . "/" . 'assets' . "/"
$assetsCssDirPath
private
static string
$assetsCssDirPath
$assetsCssRootMainPath
private
static string
$assetsCssRootMainPath
$assetsJsDirPath
private
static string
$assetsJsDirPath
$assetsJsRootMainPath
private
static string
$assetsJsRootMainPath
$configShring
private
array<string|int, mixed>|null
$configShring
= null
$cssPath
private
static string
$cssPath
= 'css' . "/"
$fontPath
private
static string
$fontPath
= 'font' . "/"
$imagePath
private
static string
$imagePath
= 'image' . "/"
$jsPath
private
static string
$jsPath
= 'js' . "/"
$moviePath
private
static string
$moviePath
= 'movie' . "/"
$path
private
string|null
$path
= null
$pathSource
private
static string
$pathSource
$resources
private
static string
$resources
= "/" . 'resources' . "/"
$resourcesCssDirPath
private
static string
$resourcesCssDirPath
$resourcesCssRootDirPath
private
static string
$resourcesCssRootDirPath
$resourcesJsDirPath
private
static string
$resourcesJsDirPath
$resourcesJsRootDirPath
private
static string
$resourcesJsRootDirPath
$soundPath
private
static string
$soundPath
= 'sound' . "/"
$svgPath
private
static string
$svgPath
= 'svg' . "/"
$webManifest
private
static string
$webManifest
= "manifest/manifest.json"
Methods
__construct()
Construct a new WebResourcesPath object.
public
__construct([string|null $path = null ][, array<string|int, mixed>|null $configShring = null ]) : mixed
Parameters
- $path : string|null = null
-
The path to the resources and assets.
- $configShring : array<string|int, mixed>|null = null
-
An array containing configuration options for shrinking the path.
__get()
Returns a string representation of the object.
public
__get(string $pathName) : string
This method returns a string representation of the object.
Parameters
- $pathName : string
-
The name of the path to return.
Return values
string —The string representation of the object.
__toString()
Returns a string representation of the object.
public
__toString() : string
This method returns a string representation of the object.
Return values
string —The string representation of the object.
all()
Returns an associative array with all paths.
public
all() : array<string|int, mixed>
This method returns an associative array containing all the paths defined in this class.
Return values
array<string|int, mixed> —An associative array with all paths.