PHP Class App\services\Plugin

Inheritance: implements Illuminate\Contracts\Support\Arrayable
Afficher le fichier Open project: printempw/blessing-skin-server Class Usage Examples

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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 méthode

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

__get() public méthode

public __get ( $name )

__isset() public méthode

public __isset ( $name )

getNameSpace() public méthode

public getNameSpace ( )

getPath() public méthode

public getPath ( ) : string
Résultat string

getVersion() public méthode

public getVersion ( ) : string
Résultat string

getViewPath() public méthode

public getViewPath ( $name )

hasConfigView() public méthode

public hasConfigView ( )

isEnabled() public méthode

public isEnabled ( ) : boolean
Résultat boolean

isInstalled() public méthode

public isInstalled ( ) : boolean
Résultat boolean

packageInfoAttribute() public méthode

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

setEnabled() public méthode

public setEnabled ( boolean $enabled ) : Plugin
$enabled boolean
Résultat Plugin

setInstalled() public méthode

public setInstalled ( boolean $installed ) : Plugin
$installed boolean
Résultat Plugin

setNameSpace() public méthode

public setNameSpace ( $namespace )

setVersion() public méthode

public setVersion ( string $version ) : Plugin
$version string
Résultat Plugin

toArray() public méthode

Generates an array result for the object.
public toArray ( ) : array
Résultat array

Property Details

$enabled protected_oe property

Whether the plugin is enabled.
protected bool $enabled
Résultat boolean

$installed protected_oe property

Whether the plugin is installed.
protected bool $installed
Résultat boolean

$namespace protected_oe property

The namespace used by the plugin.
protected string $namespace
Résultat string

$packageInfo protected_oe property

package.json of the package.
protected array $packageInfo
Résultat array

$path protected_oe property

The directory of this plugin.
protected string $path
Résultat string

$version protected_oe property

The installed version of the plugin.
protected string $version
Résultat string