PHP Класс Flarum\Extension\Extension

Наследование: implements Illuminate\Contracts\Support\Arrayable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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 ) : Extension
setInstalled ( boolean $installed ) : Extension
setVersion ( string $version ) : Extension
toArray ( ) : array Generates an array result for the object.

Защищенные методы

Метод Описание
assignId ( ) Assigns the id for the extension used globally.

Описание методов

__construct() публичный Метод

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

__get() публичный Метод

public __get ( $name )

__isset() публичный Метод

public __isset ( $name )

assignId() защищенный Метод

Assigns the id for the extension used globally.
protected assignId ( )

composerJsonAttribute() публичный Метод

Dot notation getter for composer.json attributes.
См. также: https://laravel.com/docs/5.1/helpers#arrays
public composerJsonAttribute ( $name ) : mixed
$name
Результат mixed

getIcon() публичный Метод

Loads the icon information from the composer.json.
public getIcon ( ) : array | null
Результат array | null

getId() публичный Метод

The raw path of the directory under extensions.
public getId ( ) : string
Результат string

getPath() публичный Метод

public getPath ( ) : string
Результат string

getVersion() публичный Метод

public getVersion ( ) : string
Результат string

hasAssets() публичный Метод

Tests whether the extension has assets.
public hasAssets ( ) : boolean
Результат boolean

hasMigrations() публичный Метод

Tests whether the extension has migrations.
public hasMigrations ( ) : boolean
Результат boolean

isEnabled() публичный Метод

public isEnabled ( ) : boolean
Результат boolean

isInstalled() публичный Метод

public isInstalled ( ) : boolean
Результат boolean

setEnabled() публичный Метод

public setEnabled ( boolean $enabled ) : Extension
$enabled boolean
Результат Extension

setInstalled() публичный Метод

public setInstalled ( boolean $installed ) : Extension
$installed boolean
Результат Extension

setVersion() публичный Метод

public setVersion ( string $version ) : Extension
$version string
Результат Extension

toArray() публичный Метод

Generates an array result for the object.
public toArray ( ) : array
Результат array

Описание свойств

$composerJson защищенное свойство

Composer json of the package.
protected array $composerJson
Результат array

$enabled защищенное свойство

Whether the extension is enabled.
protected bool $enabled
Результат boolean

$id защищенное свойство

Unique Id of the extension.
protected string $id
Результат string

$installed защищенное свойство

Whether the extension is installed.
protected bool $installed
Результат boolean

$path защищенное свойство

The directory of this extension.
protected string $path
Результат string

$version защищенное свойство

The installed version of the extension.
protected string $version
Результат string