PHP Class FOF30\Params\Params

Afficher le fichier Open project: akeeba/fof

Protected Properties

Свойство Type Description
$container The container we belong to

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

get() public méthode

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
Résultat mixed

getParams() public méthode

Returns a copy of the loaded component parameters as an array
public getParams ( ) : array
Résultat array

reload() public méthode

Reload the params
public reload ( )

save() public méthode

Actually Save the params into the db
public save ( )

set() public méthode

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
Résultat void

setParams() public méthode

Sets the value of multiple component configuration parameters at once
public setParams ( array $params ) : void
$params array The parameters to set
Résultat void

Property Details

$container protected_oe property

The container we belong to
protected $container