1
|
|
|
<?php |
2
|
|
|
if (!defined('sugarEntry') || !sugarEntry) { |
3
|
|
|
die('Not A Valid Entry Point'); |
4
|
|
|
} |
5
|
|
|
/********************************************************************************* |
6
|
|
|
* SugarCRM Community Edition is a customer relationship management program developed by |
7
|
|
|
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
8
|
|
|
|
9
|
|
|
* SuiteCRM is an extension to SugarCRM Community Edition developed by Salesagility Ltd. |
10
|
|
|
* Copyright (C) 2011 - 2014 Salesagility Ltd. |
11
|
|
|
* |
12
|
|
|
* This program is free software; you can redistribute it and/or modify it under |
13
|
|
|
* the terms of the GNU Affero General Public License version 3 as published by the |
14
|
|
|
* Free Software Foundation with the addition of the following permission added |
15
|
|
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK |
16
|
|
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY |
17
|
|
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS. |
18
|
|
|
* |
19
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT |
20
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
21
|
|
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more |
22
|
|
|
* details. |
23
|
|
|
* |
24
|
|
|
* You should have received a copy of the GNU Affero General Public License along with |
25
|
|
|
* this program; if not, see http://www.gnu.org/licenses or write to the Free |
26
|
|
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
27
|
|
|
* 02110-1301 USA. |
28
|
|
|
* |
29
|
|
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road, |
30
|
|
|
* SW2-130, Cupertino, CA 95014, USA. or at email address [email protected]. |
31
|
|
|
* |
32
|
|
|
* The interactive user interfaces in modified source and object code versions |
33
|
|
|
* of this program must display Appropriate Legal Notices, as required under |
34
|
|
|
* Section 5 of the GNU Affero General Public License version 3. |
35
|
|
|
* |
36
|
|
|
* In accordance with Section 7(b) of the GNU Affero General Public License version 3, |
37
|
|
|
* these Appropriate Legal Notices must retain the display of the "Powered by |
38
|
|
|
* SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not |
39
|
|
|
* reasonably feasible for technical reasons, the Appropriate Legal Notices must |
40
|
|
|
* display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM". |
41
|
|
|
********************************************************************************/ |
42
|
|
|
|
43
|
|
|
/********************************************************************************* |
44
|
|
|
|
45
|
|
|
* Description: TODO: To be written. |
46
|
|
|
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. |
47
|
|
|
* All Rights Reserved. |
48
|
|
|
* Contributor(s): ______________________________________.. |
49
|
|
|
********************************************************************************/ |
50
|
|
|
|
51
|
|
|
class AlertsViewDefault extends SugarView |
|
|
|
|
52
|
|
|
{ |
53
|
|
|
/** |
54
|
|
|
* @see SugarView::_getModuleTitleParams() |
55
|
|
|
*/ |
56
|
|
|
protected function _getModuleTitleParams($browserTitle = false) |
57
|
|
|
{ |
58
|
|
|
return array('Alerts'); |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @see SugarView::preDisplay() |
63
|
|
|
*/ |
64
|
|
|
public function preDisplay() |
65
|
|
|
{ |
66
|
|
|
|
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @see SugarView::display() |
71
|
|
|
*/ |
72
|
|
|
public function display() |
73
|
|
|
{ |
74
|
|
|
$this->ss->assign('json', $this->ss->get_config_vars()); |
75
|
|
|
echo $this->ss->fetch('modules/Alerts/templates/json.tpl'); |
76
|
|
|
die(); |
77
|
|
|
} |
78
|
|
|
} |
79
|
|
|
|
This check looks for classes that have been defined more than once.
If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.
This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.