PHP 클래스 App\services\Plugin

상속: implements Illuminate\Contracts\Support\Arrayable
파일 보기 프로젝트 열기: printempw/blessing-skin-server 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$enabled boolean Whether the plugin is enabled.
$installed boolean Whether the plugin is installed.
$namespace string The namespace used by the plugin.
$packageInfo array package.json of the package.
$path string The directory of this plugin.
$version string The installed version of the plugin.

공개 메소드들

메소드 설명
__construct ( $path, array $packageInfo )
__get ( $name )
__isset ( $name )
getNameSpace ( )
getPath ( ) : string
getVersion ( ) : string
getViewPath ( $name )
hasConfigView ( )
isEnabled ( ) : boolean
isInstalled ( ) : boolean
packageInfoAttribute ( $name ) : mixed Dot notation getter for composer.json attributes.
setEnabled ( boolean $enabled ) : Plugin
setInstalled ( boolean $installed ) : Plugin
setNameSpace ( $namespace )
setVersion ( string $version ) : Plugin
toArray ( ) : array Generates an array result for the object.

메소드 상세

__construct() 공개 메소드

public __construct ( $path, array $packageInfo )
$path
$packageInfo array

__get() 공개 메소드

public __get ( $name )

__isset() 공개 메소드

public __isset ( $name )

getNameSpace() 공개 메소드

public getNameSpace ( )

getPath() 공개 메소드

public getPath ( ) : string
리턴 string

getVersion() 공개 메소드

public getVersion ( ) : string
리턴 string

getViewPath() 공개 메소드

public getViewPath ( $name )

hasConfigView() 공개 메소드

public hasConfigView ( )

isEnabled() 공개 메소드

public isEnabled ( ) : boolean
리턴 boolean

isInstalled() 공개 메소드

public isInstalled ( ) : boolean
리턴 boolean

packageInfoAttribute() 공개 메소드

Dot notation getter for composer.json attributes.
또한 보기: https://laravel.com/docs/5.1/helpers#arrays
public packageInfoAttribute ( $name ) : mixed
$name
리턴 mixed

setEnabled() 공개 메소드

public setEnabled ( boolean $enabled ) : Plugin
$enabled boolean
리턴 Plugin

setInstalled() 공개 메소드

public setInstalled ( boolean $installed ) : Plugin
$installed boolean
리턴 Plugin

setNameSpace() 공개 메소드

public setNameSpace ( $namespace )

setVersion() 공개 메소드

public setVersion ( string $version ) : Plugin
$version string
리턴 Plugin

toArray() 공개 메소드

Generates an array result for the object.
public toArray ( ) : array
리턴 array

프로퍼티 상세

$enabled 보호되어 있는 프로퍼티

Whether the plugin is enabled.
protected bool $enabled
리턴 boolean

$installed 보호되어 있는 프로퍼티

Whether the plugin is installed.
protected bool $installed
리턴 boolean

$namespace 보호되어 있는 프로퍼티

The namespace used by the plugin.
protected string $namespace
리턴 string

$packageInfo 보호되어 있는 프로퍼티

package.json of the package.
protected array $packageInfo
리턴 array

$path 보호되어 있는 프로퍼티

The directory of this plugin.
protected string $path
리턴 string

$version 보호되어 있는 프로퍼티

The installed version of the plugin.
protected string $version
리턴 string