PHP Класс Nwidart\Modules\Module

Наследование: extends Illuminate\Support\ServiceProvider
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$app Illuminate\Foundation\Application The laravel application instance.
$name The module name.
$path string The module path,.

Открытые методы

Метод Описание
__construct ( Illuminate\Foundation\Application $app, $name, $path ) The constructor.
__get ( $key ) : mixed Handle call to __get method.
__toString ( ) : string Handle call __toString.
active ( ) : boolean Alternate for "enabled" method.
boot ( ) Bootstrap the application events.
delete ( ) : boolean Delete the current module.
disable ( ) : boolean Disable the current module.
disabled ( ) : boolean Alias for "notActive" method.
enable ( ) Enable the current module.
enabled ( ) : boolean Determine whether the current module activated.
get ( $key, null $default = null ) : mixed Get a specific data from json file by given the key.
getAlias ( ) : string Get alias.
getComposerAttr ( $key, null $default = null ) : mixed Get a specific data from composer.json file by given the key.
getDescription ( ) : string Get description.
getExtraPath ( $path ) : string Get extra path.
getLaravel ( ) : Illuminate\Foundation\Application Get laravel instance.
getLowerName ( ) : string Get name in lower case.
getName ( ) : string Get name.
getPath ( ) : string Get path.
getPriority ( ) : string Get priority.
getStudlyName ( ) : string Get name in studly case.
isStatus ( $status ) : boolean Determine whether the given status same with the current module status.
json ( $file = null ) : Json Get json contents.
notActive ( ) : boolean Determine whether the current module not activated.
register ( ) Register the module.
setActive ( $active ) : boolean Set active state for current module.
setPath ( string $path ) Set path.

Защищенные методы

Метод Описание
fireEvent ( string $event ) Register the module event.
registerAliases ( ) Register the aliases from this module.
registerFiles ( ) Register the files from this module.
registerProviders ( ) Register the service providers from this module.
registerTranslation ( ) : void Register module's translation.

Описание методов

__construct() публичный метод

The constructor.
public __construct ( Illuminate\Foundation\Application $app, $name, $path )
$app Illuminate\Foundation\Application
$name
$path

__get() публичный метод

Handle call to __get method.
public __get ( $key ) : mixed
$key
Результат mixed

__toString() публичный метод

Handle call __toString.
public __toString ( ) : string
Результат string

active() публичный метод

Alternate for "enabled" method.
public active ( ) : boolean
Результат boolean

boot() публичный метод

Bootstrap the application events.
public boot ( )

delete() публичный метод

Delete the current module.
public delete ( ) : boolean
Результат boolean

disable() публичный метод

Disable the current module.
public disable ( ) : boolean
Результат boolean

disabled() публичный метод

Alias for "notActive" method.
public disabled ( ) : boolean
Результат boolean

enable() публичный метод

Enable the current module.
public enable ( )

enabled() публичный метод

Determine whether the current module activated.
public enabled ( ) : boolean
Результат boolean

fireEvent() защищенный метод

Register the module event.
protected fireEvent ( string $event )
$event string

get() публичный метод

Get a specific data from json file by given the key.
public get ( $key, null $default = null ) : mixed
$key
$default null
Результат mixed

getAlias() публичный метод

Get alias.
public getAlias ( ) : string
Результат string

getComposerAttr() публичный метод

Get a specific data from composer.json file by given the key.
public getComposerAttr ( $key, null $default = null ) : mixed
$key
$default null
Результат mixed

getDescription() публичный метод

Get description.
public getDescription ( ) : string
Результат string

getExtraPath() публичный метод

Get extra path.
public getExtraPath ( $path ) : string
$path
Результат string

getLaravel() публичный метод

Get laravel instance.
public getLaravel ( ) : Illuminate\Foundation\Application
Результат Illuminate\Foundation\Application

getLowerName() публичный метод

Get name in lower case.
public getLowerName ( ) : string
Результат string

getName() публичный метод

Get name.
public getName ( ) : string
Результат string

getPath() публичный метод

Get path.
public getPath ( ) : string
Результат string

getPriority() публичный метод

Get priority.
public getPriority ( ) : string
Результат string

getStudlyName() публичный метод

Get name in studly case.
public getStudlyName ( ) : string
Результат string

isStatus() публичный метод

Determine whether the given status same with the current module status.
public isStatus ( $status ) : boolean
$status
Результат boolean

json() публичный метод

Get json contents.
public json ( $file = null ) : Json
Результат Json

notActive() публичный метод

Determine whether the current module not activated.
public notActive ( ) : boolean
Результат boolean

register() публичный метод

Register the module.
public register ( )

registerAliases() защищенный метод

Register the aliases from this module.
protected registerAliases ( )

registerFiles() защищенный метод

Register the files from this module.
protected registerFiles ( )

registerProviders() защищенный метод

Register the service providers from this module.
protected registerProviders ( )

registerTranslation() защищенный метод

Register module's translation.
protected registerTranslation ( ) : void
Результат void

setActive() публичный метод

Set active state for current module.
public setActive ( $active ) : boolean
$active
Результат boolean

setPath() публичный метод

Set path.
public setPath ( string $path )
$path string

Описание свойств

$app защищенное свойство

The laravel application instance.
protected Application,Illuminate\Foundation $app
Результат Illuminate\Foundation\Application

$name защищенное свойство

The module name.
protected $name

$path защищенное свойство

The module path,.
protected string $path
Результат string