\pm_Settings

Manager of module settings

Summary

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

Methods

get()

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

Retrieve 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) 

Store 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

getDecrypted()

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

Retrieve value of setting by given name with decryption (AES-128 CBC)

Parameters

string $name

Setting name

string $default

Default value of setting

Returns

string|null

setEncrypted()

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

Store value of setting in encrypted form (AES-128 CBC)

Parameters

string $name

Setting name

string|null $value

Setting value or null to delete setting