1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
16: class Horde_Core_Prefs_Storage_Hooks extends Horde_Prefs_Storage_Base
17: {
18: 19:
20: public function get($scope_ob)
21: {
22: $conf_ob = $this->_params['conf_ob'];
23:
24: if (empty($conf_ob->hooks[$scope_ob->scope])) {
25: return $scope_ob;
26: }
27:
28: foreach ($conf_ob->hooks[$scope_ob->scope] as $name) {
29: try {
30: $scope_ob->set($name, Horde::callHook('prefs_init', array($name, $scope_ob->get($name), strlen($this->_params['user']) ? $this->_params['user'] : null, $scope_ob), $scope_ob->scope));
31: } catch (Horde_Exception_HookNotSet $e) {}
32: }
33:
34: return $scope_ob;
35: }
36:
37: 38:
39: public function store($scope_ob)
40: {
41:
42: }
43:
44: 45:
46: public function onChange($scope, $pref)
47: {
48: try {
49: Horde::callHook('prefs_change', array($pref), $scope);
50: } catch (Horde_Exception_HookNotSet $e) {}
51: }
52:
53: 54:
55: public function remove($scope = null, $pref = null)
56: {
57:
58: }
59:
60: }
61: