\pm_Settings

Manager of module settings

Summary

Methods
Properties
Constants
get()
set()
clean()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A

Properties

Methods

get()

get(string  $name, string  $default = null) : string|null

Return value of setting by given name

Parameters

string $name

Setting name

string $default

Default value of setting

Returns

string|null

set()

set(string  $name, string|null  $value) 

Define value of setting

Parameters

string $name

Setting name

string|null $value

Setting value or null to delete setting

Throws

\Zend_Db_Table_Exception
\Zend_Db_Table_Row_Exception
\pm_Exception_InvalidArgumentException

clean()

clean(string  $prefix = '') 

Delete all settings

Parameters

string $prefix

Settings name prefix