Bootstrap
extends Section
in package
Table of Contents
Properties
- $section : string
- $appBase : string
- $config : Config
- $lang : Lang
- $language : Language
- $request : Request
- $user : User
Methods
- __construct() : mixed
- getAppBase() : string
- Returns app base directory (with leading slash)
- getDefalutSettings() : array<string|int, mixed>
- Return section's default settings
- getSectionBase() : string
- Returns section directory (with leading slash)
- getSectionData() : array<string|int, mixed>
- Returns section's bootstrap data
- addSectionData() : void
- Adds section bootstrap data
- bootstrapAdmin() : void
- bootstrapDashboard() : void
- bootstrapWebroot() : void
Properties
$section
protected
string
$section
$appBase
private
string
$appBase
= ''
$config
private
Config
$config
$lang
private
Lang
$lang
$language
private
Language
$language
$request
private
Request
$request
$user
private
User
$user
Methods
__construct()
public
__construct(Request $request, Config $config, User $user, Language $language, Lang $lang) : mixed
Parameters
getAppBase()
Returns app base directory (with leading slash)
public
getAppBase() : string
Return values
stringgetDefalutSettings()
Return section's default settings
public
getDefalutSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>getSectionBase()
Returns section directory (with leading slash)
public
getSectionBase() : string
Return values
stringgetSectionData()
Returns section's bootstrap data
public
getSectionData() : array<string|int, mixed>
Return values
array<string|int, mixed>addSectionData()
Adds section bootstrap data
protected
addSectionData(string $k, int|float|string|array<string|int, mixed>|bool|null $data) : void
Parameters
- $k : string
- $data : int|float|string|array<string|int, mixed>|bool|null
bootstrapAdmin()
private
bootstrapAdmin() : void
bootstrapDashboard()
private
bootstrapDashboard() : void
bootstrapWebroot()
private
bootstrapWebroot() : void