PHP Интерфейс Caffeinated\Modules\Contracts\Repository

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
all ( ) : Collection Get all modules.
count ( ) : integer Returns a count of all modules.
disable ( string $slug ) : boolean Disables the specified module.
disabled ( ) : Collection Get all disabled modules.
enable ( string $slug ) : boolean Enables the specified module.
enabled ( ) : Collection Get all enabled modules.
exists ( string $slug ) : boolean Determines if the given module exists.
get ( string $property, mixed | null $default = null ) : mixed | null Returns the given module property.
getManifest ( string $slug ) : Collection Returns the modules defined manifest properties.
isDisabled ( string $slug ) : boolean Determines if the specified module is disabled.
isEnabled ( string $slug ) : boolean Determines if the specified module is enabled.
optimize ( ) : boolean Get all module manifest properties and store in the respective container.
set ( string $property, mixed $value ) : boolean Set the given module property value.
slugs ( ) : Collection Get all module slugs.
sortBy ( string $key ) : Collection Sort modules by given key in ascending order.
sortByDesc ( string $key ) : Collection Sort modules by given key in ascending order.
where ( string $key, mixed $value ) : Collection Get modules based on where clause.

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

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

Get all modules.
public all ( ) : Collection
Результат Collection

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

Returns a count of all modules.
public count ( ) : integer
Результат integer

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

Disables the specified module.
public disable ( string $slug ) : boolean
$slug string
Результат boolean

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

Get all disabled modules.
public disabled ( ) : Collection
Результат Collection

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

Enables the specified module.
public enable ( string $slug ) : boolean
$slug string
Результат boolean

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

Get all enabled modules.
public enabled ( ) : Collection
Результат Collection

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

Determines if the given module exists.
public exists ( string $slug ) : boolean
$slug string
Результат boolean

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

Returns the given module property.
public get ( string $property, mixed | null $default = null ) : mixed | null
$property string
$default mixed | null
Результат mixed | null

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

Returns the modules defined manifest properties.
public getManifest ( string $slug ) : Collection
$slug string
Результат Collection

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

Determines if the specified module is disabled.
public isDisabled ( string $slug ) : boolean
$slug string
Результат boolean

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

Determines if the specified module is enabled.
public isEnabled ( string $slug ) : boolean
$slug string
Результат boolean

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

Get all module manifest properties and store in the respective container.
public optimize ( ) : boolean
Результат boolean

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

Set the given module property value.
public set ( string $property, mixed $value ) : boolean
$property string
$value mixed
Результат boolean

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

Get all module slugs.
public slugs ( ) : Collection
Результат Collection

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

Sort modules by given key in ascending order.
public sortBy ( string $key ) : Collection
$key string
Результат Collection

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

Sort modules by given key in ascending order.
public sortByDesc ( string $key ) : Collection
$key string
Результат Collection

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

Get modules based on where clause.
public where ( string $key, mixed $value ) : Collection
$key string
$value mixed
Результат Collection