PHP Class App\services\Plugin

Inheritance: implements Illuminate\Contracts\Support\Arrayable
Mostra file Open project: printempw/blessing-skin-server Class Usage Examples

Protected Properties

Property Type Description
$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.

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

__get() public method

public __get ( $name )

__isset() public method

public __isset ( $name )

getNameSpace() public method

public getNameSpace ( )

getPath() public method

public getPath ( ) : string
return string

getVersion() public method

public getVersion ( ) : string
return string

getViewPath() public method

public getViewPath ( $name )

hasConfigView() public method

public hasConfigView ( )

isEnabled() public method

public isEnabled ( ) : boolean
return boolean

isInstalled() public method

public isInstalled ( ) : boolean
return boolean

packageInfoAttribute() public method

Dot notation getter for composer.json attributes.
See also: https://laravel.com/docs/5.1/helpers#arrays
public packageInfoAttribute ( $name ) : mixed
$name
return mixed

setEnabled() public method

public setEnabled ( boolean $enabled ) : Plugin
$enabled boolean
return Plugin

setInstalled() public method

public setInstalled ( boolean $installed ) : Plugin
$installed boolean
return Plugin

setNameSpace() public method

public setNameSpace ( $namespace )

setVersion() public method

public setVersion ( string $version ) : Plugin
$version string
return Plugin

toArray() public method

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

Property Details

$enabled protected_oe property

Whether the plugin is enabled.
protected bool $enabled
return boolean

$installed protected_oe property

Whether the plugin is installed.
protected bool $installed
return boolean

$namespace protected_oe property

The namespace used by the plugin.
protected string $namespace
return string

$packageInfo protected_oe property

package.json of the package.
protected array $packageInfo
return array

$path protected_oe property

The directory of this plugin.
protected string $path
return string

$version protected_oe property

The installed version of the plugin.
protected string $version
return string