Documentation

WebResourcesPath
in package

FinalYes

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
final

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' . "/"

$configShring

private array<string|int, mixed>|null $configShring = null

$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.

On this page

Search results