Overview

Packages

  • None
  • Sesha

Classes

  • Sesha_Application
  • Sesha_Factory_Driver
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Sesha application API.
 4:  *
 5:  * This file defines Horde's core API interface. Other core Horde libraries
 6:  * can interact with Skeleton through this API.
 7:  *
 8:  * Copyright 2011 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:  * @package Sesha
14:  */
15: 
16: /* Determine the base directories. */
17: if (!defined('SESHA_BASE')) {
18:     define('SESHA_BASE', dirname(__FILE__) . '/..');
19: }
20: 
21: if (!defined('HORDE_BASE')) {
22:     /* If Horde does not live directly under the app directory, the HORDE_BASE
23:      * constant should be defined in config/horde.local.php. */
24:     if (file_exists(SESHA_BASE . '/config/horde.local.php')) {
25:         include SESHA_BASE . '/config/horde.local.php';
26:     } else {
27:         define('HORDE_BASE', SESHA_BASE . '/..');
28:     }
29: }
30: 
31: /* Load the Horde Framework core (needed to autoload
32:  * Horde_Registry_Application::). */
33: require_once HORDE_BASE . '/lib/core.php';
34: /*
35:  * The sesha application class
36:  * @package Sesha
37:  */
38: class Sesha_Application extends Horde_Registry_Application
39: {
40:     /**
41:      * The application's version.
42:      *
43:      * @var string
44:      */
45:     public $version = 'H4 (1.0-git)';
46: 
47:     public function perms()
48:     {
49:         $permissions = array(
50:             'admin' => array(
51:                 'title' => _("Administration"),
52:             ),
53:             'addStock' => array(
54:                 'title' => _("Add Stock")
55:             )
56:         );
57:         return $permissions;
58:     }
59: }
60: 
API documentation generated by ApiGen