PHP Класс Caffeinated\Modules\Repositories\LocalRepository

Наследование: extends Repository
Показать файл Открыть проект

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

Метод Описание
all ( ) : Collection Get all modules.
count ( ) : integer Returns 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 $default = null ) : mixed Get a module property value.
isDisabled ( string $slug ) : boolean Check if specified module is disabled.
isEnabled ( string $slug ) : boolean Check if specified module is enabled.
optimize ( ) : boolean Update cached repository of module information.
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.

Приватные методы

Метод Описание
createCache ( ) : Collection Create an empty instance of the cache file.
getCache ( ) : Collection Get the contents of the cache file.
getCachePath ( ) : string Get the path to the cache file.

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

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

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

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

Returns 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() публичный метод

Get a module property value.
public get ( string $property, mixed $default = null ) : mixed
$property string
$default mixed
Результат mixed

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

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

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

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

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

Update cached repository of module information.
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