PHP Класс App\services\Plugin

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

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

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

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

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

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

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

public __get ( $name )

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

public __isset ( $name )

getNameSpace() публичный метод

public getNameSpace ( )

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

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

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

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

getViewPath() публичный метод

public getViewPath ( $name )

hasConfigView() публичный метод

public hasConfigView ( )

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

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

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

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

packageInfoAttribute() публичный метод

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

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

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

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

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

setNameSpace() публичный метод

public setNameSpace ( $namespace )

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

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

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

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

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

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

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

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

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

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

The namespace used by the plugin.
protected string $namespace
Результат string

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

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

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

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

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

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