PHP 클래스 Nwidart\Modules\Module

상속: extends Illuminate\Support\ServiceProvider
파일 보기 프로젝트 열기: nwidart/laravel-modules 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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