forked from tine20/tine20
/
Config.php
94 lines (85 loc) · 2.3 KB
/
Config.php
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
/**
* @package Admin
* @subpackage Config
* @license http://www.gnu.org/licenses/agpl.html AGPL Version 3
* @author Philipp Schüle <p.schuele@metaways.de>
* @copyright Copyright (c) 2012 Metaways Infosystems GmbH (http://www.metaways.de)
*/
/**
* Admin config class
*
* @package Admin
* @subpackage Config
*
* @todo add config settings here
*/
class Admin_Config extends Tinebase_Config_Abstract
{
/**
* Default IMAP user settings
*
* @var string
*/
const DEFAULT_IMAP_USER_SETTINGS = 'defaultImapUserSettings';
/**
* (non-PHPdoc)
* @see tine20/Tinebase/Config/Definition::$_properties
*/
protected static $_properties = array(
self::DEFAULT_IMAP_USER_SETTINGS => array(
//_('Default IMAP user settings')
'label' => 'Default IMAP user settings',
//_('Default IMAP user settings')
'description' => 'Default IMAP user settings',
'type' => 'object',
'class' => 'Tinebase_Config_Struct',
'clientRegistryInclude' => TRUE,
'setByAdminModule' => TRUE,
'setBySetupModule' => FALSE,
),
);
/**
* (non-PHPdoc)
* @see tine20/Tinebase/Config/Abstract::$_appName
*/
protected $_appName = 'Admin';
/**
* holds the instance of the singleton
*
* @var Tinebase_Config
*/
private static $_instance = NULL;
/**
* the constructor
*
* don't use the constructor. use the singleton
*/
private function __construct() {}
/**
* the constructor
*
* don't use the constructor. use the singleton
*/
private function __clone() {}
/**
* Returns instance of Tinebase_Config
*
* @return Tinebase_Config
*/
public static function getInstance()
{
if (self::$_instance === NULL) {
self::$_instance = new self();
}
return self::$_instance;
}
/**
* (non-PHPdoc)
* @see tine20/Tinebase/Config/Abstract::getProperties()
*/
public static function getProperties()
{
return self::$_properties;
}
}