Documentation

ResourcesPath
in package

FinalYes

ResourcesPath class

This class is responsible for generating paths to resources and assets

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 ResourcesPath object.
__get()  : string
Returns a string representation of the object.
__toString()  : string
Returns a string representation of the object.
all()  : array<string|int, mixed>
Return all the resources path.

Properties

$assets

private static string $assets = DIRECTORY_SEPARATOR . 'storage' . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR

$assetsCssRootMainPath

private static string $assetsCssRootMainPath

$assetsJsRootMainPath

private static string $assetsJsRootMainPath

$configShring

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

$cssPath

private static string $cssPath = 'css' . DIRECTORY_SEPARATOR

$fontPath

private static string $fontPath = 'font' . DIRECTORY_SEPARATOR

$imagePath

private static string $imagePath = 'image' . DIRECTORY_SEPARATOR

$jsPath

private static string $jsPath = 'js' . DIRECTORY_SEPARATOR

$moviePath

private static string $moviePath = 'movie' . DIRECTORY_SEPARATOR

$resources

private static string $resources = DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR

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

$svgPath

private static string $svgPath = 'svg' . DIRECTORY_SEPARATOR

$webManifest

private static string $webManifest = 'manifest' . DIRECTORY_SEPARATOR . 'manifest.json'

Methods

__construct()

Construct a new ResourcesPath 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()

Return all the resources path.

public all() : array<string|int, mixed>

This method returns all the resources path.

Return values
array<string|int, mixed>
  • The resources path.
On this page

Search results