forgot to add a few statics... :p
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -99,7 +99,7 @@ class Settings
|
|||||||
* @param string $varname
|
* @param string $varname
|
||||||
* @param string $value
|
* @param string $value
|
||||||
*/
|
*/
|
||||||
private function _storeSetting($group = null, $varname = null, $value = null)
|
private static function _storeSetting($group = null, $varname = null, $value = null)
|
||||||
{
|
{
|
||||||
$upd_data = array(
|
$upd_data = array(
|
||||||
'group' => $group,
|
'group' => $group,
|
||||||
@@ -117,7 +117,7 @@ class Settings
|
|||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function Get($setting = null)
|
public static function Get($setting = null)
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
$sstr = explode(".", $setting);
|
$sstr = explode(".", $setting);
|
||||||
@@ -142,7 +142,7 @@ class Settings
|
|||||||
*
|
*
|
||||||
* @return boolean true, if the list contains $entry
|
* @return boolean true, if the list contains $entry
|
||||||
*/
|
*/
|
||||||
public function IsInList($setting = null, $entry = null)
|
public static function IsInList($setting = null, $entry = null)
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
$s = self::Get($setting);
|
$s = self::Get($setting);
|
||||||
@@ -163,7 +163,7 @@ class Settings
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function Set($setting = null, $value = null, $instant_save = true)
|
public static function Set($setting = null, $value = null, $instant_save = true)
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
// check whether the setting exists
|
// check whether the setting exists
|
||||||
@@ -203,7 +203,7 @@ class Settings
|
|||||||
*
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function AddNew($setting = null, $value = null)
|
public static function AddNew($setting = null, $value = null)
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
// first check if it doesn't exist
|
// first check if it doesn't exist
|
||||||
|
|||||||
Reference in New Issue
Block a user