class Project

Properties

static $instance
string $folder
string $name
string $description

Methods

__construct($data)

No description

static null|Project
get()

Get the current project.

string
root(string $path = "")

Build an absolute path to project folder resource

static 
boot()

Executes the project boot file if exists

array
getLanguages()

Get the available languages for the project.

array
hasLanguage(string $lang)

Get the available languages for the project.

string
getDefaultLanguage()

Get the default language for the project.

Collection
getModules()

Get the project active modules

bool
hasModule(string $module)

Get if a project has a module

Details

at line 15
__construct($data)

No description

Parameters

$data

at line 27
static null|Project get()

Get the current project.

Return Value

null|Project

at line 60
string root(string $path = "")

Build an absolute path to project folder resource

Parameters

string $path

The path

Return Value

string Path

at line 70
static boot()

Executes the project boot file if exists

at line 82
array getLanguages()

Get the available languages for the project.

Return Value

array

The list of available languages.

at line 91
array hasLanguage(string $lang)

Get the available languages for the project.

Parameters

string $lang

Return Value

array

The list of available languages.

at line 100
string getDefaultLanguage()

Get the default language for the project.

Return Value

string

The default language.

at line 109
Collection getModules()

Get the project active modules

Return Value

Collection

The collection of active modules.

at line 122
bool hasModule(string $module)

Get if a project has a module

Parameters

string $module

The module to check for

Return Value

bool

True if the project has the module, false otherwise.