PHP Class FOF30\Params\Params

Datei anzeigen Open project: akeeba/fof

Protected Properties

Property Type Description
$container The container we belong to

Public Methods

Method 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 method

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

get() public method

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
return mixed

getParams() public method

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

reload() public method

Reload the params
public reload ( )

save() public method

Actually Save the params into the db
public save ( )

set() public method

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
return void

setParams() public method

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

Property Details

$container protected_oe property

The container we belong to
protected $container