-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPrefs.php
More file actions
56 lines (45 loc) · 1.57 KB
/
Copy pathPrefs.php
File metadata and controls
56 lines (45 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace FeatherBB\Core\Interfaces;
class Prefs extends SlimSugar
{
public static function setUser($user = null, $prefs, $gid = null)
{
return static::$slim->getContainer()['prefs']->setUser($user, $prefs, $gid);
}
public static function setGroup($gid = null, $prefs)
{
return static::$slim->getContainer()['prefs']->setGroup($gid, $prefs);
}
public static function set(array $prefs) // Default
{
return static::$slim->getContainer()['prefs']->set($prefs);
}
public static function delUser($user = null, $prefs = null)
{
return static::$slim->getContainer()['prefs']->delUser($user, $prefs);
}
public static function delGroup($gid = null, $prefs = null)
{
return static::$slim->getContainer()['prefs']->delGroup($gid, $prefs);
}
public static function del($prefs = null) // Default
{
return static::$slim->getContainer()['prefs']->del($prefs);
}
public static function get($user = null, $pref = null)
{
return static::$slim->getContainer()['prefs']->get($user, $pref);
}
public static function loadPrefs($user = null)
{
return static::$slim->getContainer()['prefs']->loadPrefs($user);
}
protected function getInfosFromUser($user = null)
{
return static::$slim->getContainer()['prefs']->getInfosFromUser($user);
}
public static function getGroupPreferences($groupId = null, $preference = null)
{
return static::$slim->getContainer()['prefs']->getGroupPreferences($groupId, $preference);
}
}