프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
assignId ( ) | Assigns the id for the extension used globally. |
public composerJsonAttribute ( $name ) : mixed | ||
$name | ||
리턴 | mixed |
public hasMigrations ( ) : boolean | ||
리턴 | boolean |
public setEnabled ( boolean $enabled ) : |
||
$enabled | boolean | |
리턴 |
public setInstalled ( boolean $installed ) : |
||
$installed | boolean | |
리턴 |