Overview

Packages

  • None
  • Operator

Classes

  • Operator_Application
  • Operator_Exception

Functions

  • _operator_perms
  • Overview
  • Package
  • Function
  • Tree
 1: <?php
 2: /**
 3:  * Operator external API interface.
 4:  *
 5:  * This file defines Operator's external API interface. Other applications
 6:  * can interact with Operator through this API.
 7:  *
 8:  * Copyright 2008-2012 Horde LLC (http://www.horde.org/)
 9:  *
10:  * See the enclosed file COPYING for license information (GPL). If you
11:  * did not receive this file, see http://www.horde.org/licenses/gpl.
12:  *
13:  * @author Ben Klang <ben@alkaloid.net>
14:  * @package Operator
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: 
API documentation generated by ApiGen