Property | Type | Description | |
---|---|---|---|
$composerJson | array | Composer json of the package. | |
$enabled | boolean | Whether the extension is enabled. | |
$id | string | Unique Id of the extension. | |
$installed | boolean | Whether the extension is installed. | |
$path | string | The directory of this extension. | |
$version | string | The installed version of the extension. |
Method | Description | |
---|---|---|
__construct ( $path, array $composerJson ) | ||
__get ( $name ) | ||
__isset ( $name ) | ||
composerJsonAttribute ( $name ) : mixed | Dot notation getter for composer.json attributes. | |
getIcon ( ) : array | null | Loads the icon information from the composer.json. | |
getId ( ) : string | The raw path of the directory under extensions. | |
getPath ( ) : string | ||
getVersion ( ) : string | ||
hasAssets ( ) : boolean | Tests whether the extension has assets. | |
hasMigrations ( ) : boolean | Tests whether the extension has migrations. | |
isEnabled ( ) : boolean | ||
isInstalled ( ) : boolean | ||
setEnabled ( boolean $enabled ) : |
||
setInstalled ( boolean $installed ) : |
||
setVersion ( string $version ) : |
||
toArray ( ) : array | Generates an array result for the object. |
Method | Description | |
---|---|---|
assignId ( ) | Assigns the id for the extension used globally. |
public __construct ( $path, array $composerJson ) | ||
$path | ||
$composerJson | array |
public composerJsonAttribute ( $name ) : mixed | ||
$name | ||
return | mixed |
public hasMigrations ( ) : boolean | ||
return | boolean |
public setEnabled ( boolean $enabled ) : |
||
$enabled | boolean | |
return |
public setInstalled ( boolean $installed ) : |
||
$installed | boolean | |
return |
public setVersion ( string $version ) : |
||
$version | string | |
return |
protected array $composerJson | ||
return | array |
protected bool $enabled | ||
return | boolean |
protected bool $installed | ||
return | boolean |
protected string $version | ||
return | string |