Class Options
Namespace: Ip
Methods:
string getOption( string $key , [ null $defaultValue = null ] )
Get option value
Parameters:
string $key Option key
|
null $defaultValue A value to return if the option is not set
|
Return values:
string Option value
|
Throws:
|
string getOptionLang( string $key , string $languageCode , [ null $defaultValue = null ] )
Get language specific option value
Parameters:
string $key Option key
|
string $languageCode Language code
|
null $defaultValue A value to return if the option is not set
|
Return values:
string Option value
|
Throws:
|
setOption( string $key , mixed $value )
Set specific option
Parameters:
string $key Option key
|
mixed $value Option value
|
Throws:
|
setOptionLang( string $key , string $languageCode , mixed $value )
Set language specific option
Parameters:
string $key Option key
|
string $languageCode Language code
|
mixed $value Option value
|
Throws:
|
removeOption( string $key )
removeOptionLang( string $key , integer $languageId )
Remove language specific option
Parameters:
string $key Option key
|
integer $languageId Language ID
|
Throws:
|
import( string $configFile )
Import options form JSON file
Parameters:
string $configFile File name to import
|
Throws:
|
array getAllOptions( )
Get all web site options
Return values:
array Configuration options
|