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. |
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 ) : |
||
setInstalled ( boolean $installed ) : |
||
setNameSpace ( $namespace ) | ||
setVersion ( string $version ) : |
||
toArray ( ) : array | Generates an array result for the object. |
public __construct ( $path, array $packageInfo ) | ||
$path | ||
$packageInfo | array |
public packageInfoAttribute ( $name ) : mixed | ||
$name | ||
return | mixed |
public setEnabled ( boolean $enabled ) : |
||
$enabled | boolean | |
return |
public setInstalled ( boolean $installed ) : |
||
$installed | boolean | |
return |
public setVersion ( string $version ) : |
||
$version | string | |
return |
protected bool $installed | ||
return | boolean |
protected string $namespace | ||
return | string |
protected array $packageInfo | ||
return | array |
protected string $version | ||
return | string |