1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
16:
17: $_services['perms'] = array(
18: 'args' => array(),
19: 'type' => '{urn:horde}stringArray');
20:
21: function _operator_perms()
22: {
23: static $perms = array();
24:
25: if (!empty($perms)) {
26: return $perms;
27: }
28:
29: @define('OPERATOR_BASE', dirname(__FILE__) . '/..');
30: require_once OPERATOR_BASE . '/lib/base.php';
31:
32: $perms['tree']['operator']['accountcodes'] = false;
33: $perms['title']['operator:accountcodes'] = _("Account Codes");
34:
35: $accountcodes = Operator::getAccountCodes();
36: foreach ($accountcodes as $accountcode) {
37: $perms['tree']['operator']['accountcodes'][$accountcode] = false;
38: $perms['title']['operator:accountcodes:' . $accountcode] = $accountcode;
39: }
40:
41: return $perms;
42: }
43: