PHP Класс FOF30\Params\Params

Показать файл Открыть проект

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

Свойство Тип Описание
$container The container we belong to

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

Метод Описание
__construct ( Container $container ) Public constructor for the params object
get ( string $key, mixed $default = null ) : mixed Returns the value of a component configuration parameter
getParams ( ) : array Returns a copy of the loaded component parameters as an array
reload ( ) Reload the params
save ( ) Actually Save the params into the db
set ( string $key, mixed $value ) : void Sets the value of a component configuration parameter
setParams ( array $params ) : void Sets the value of multiple component configuration parameters at once

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

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

Public constructor for the params object
public __construct ( Container $container )
$container FOF30\Container\Container The container we belong to

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

Returns the value of a component configuration parameter
public get ( string $key, mixed $default = null ) : mixed
$key string The parameter to get
$default mixed Default value
Результат mixed

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

Returns a copy of the loaded component parameters as an array
public getParams ( ) : array
Результат array

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

Reload the params
public reload ( )

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

Actually Save the params into the db
public save ( )

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

Sets the value of a component configuration parameter
public set ( string $key, mixed $value ) : void
$key string The parameter to set
$value mixed The value to set
Результат void

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

Sets the value of multiple component configuration parameters at once
public setParams ( array $params ) : void
$params array The parameters to set
Результат void

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

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

The container we belong to
protected $container