Class Settings
System setting management
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at app/models/settings.php
Methods summary
public
mixed
|
|
public
mixed
|
|
public
|
#
setSettings( array $settings, array $value_keys = null )
Sets a group of settings with key/value pairs |
public
|
#
setSetting( string $key, string $value, mixed $encrypted = null, integer $inherit = null )
Sets the setting with the given key, overwriting any existing value with that key |
public
|
#
unsetSetting( string $key )
Unsets a setting from the system settings. CAUTION: This method will physically remove the setting from the system, and could have dire consequences. You should never use this method, except when attempting to remove a setting created by Settings::setSettings() or Settings::setSetting() that did not previously exist for this installation. |
public
string
|
|
public
string
|
#
getDbVersion( )
Returns the database version of Blesta. A shortcut for Settings::getSetting("database_version"). Often this will not be exactly the same as the source version because database changes are not made in every sourve version update. |
public
boolean
|
Methods inherited from AppModel
_(),
__construct(),
boolToInt(),
currencyToDecimal(),
dateToUtc(),
errors(),
getPerPage(),
ifSet(),
loadCrypto(),
setDefaultIfEmpty(),
setPerPage(),
setRulesIfSet(),
strToBool(),
systemDecrypt(),
systemEncrypt(),
systemHash(),
truncateDecimal(),
validateExists(),
validateStateCountry()
Methods inherited from Model
affectedRows(),
begin(),
commit(),
getConnection(),
lastInsertId(),
makeDSN(),
prepare(),
query(),
rollBack(),
setAttribute(),
setFetchMode()