Passed
Push — scrutinizer-code-quality ( 09f5a1...c4c5fb )
by Adam
56:05 queued 14:08
created

Favorites_sugar::Favorites_sugar()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6
Metric Value
cc 2
eloc 7
nc 2
nop 0
dl 0
loc 10
ccs 0
cts 1
cp 0
crap 6
rs 9.4285
1
<?PHP
2
/*********************************************************************************
3
 * SugarCRM Community Edition is a customer relationship management program developed by
4
 * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
5
 * SuiteCRM is an extension to SugarCRM Community Edition developed by Salesagility Ltd.
6
 * Copyright (C) 2011 - 2014 Salesagility Ltd.
7
 *
8
 * This program is free software; you can redistribute it and/or modify it under
9
 * the terms of the GNU Affero General Public License version 3 as published by the
10
 * Free Software Foundation with the addition of the following permission added
11
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
12
 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
13
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14
 *
15
 * This program is distributed in the hope that it will be useful, but WITHOUT
16
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
18
 * details.
19
 *
20
 * You should have received a copy of the GNU Affero General Public License along with
21
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
22
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23
 * 02110-1301 USA.
24
 *
25
 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
26
 * SW2-130, Cupertino, CA 95014, USA. or at email address [email protected].
27
 *
28
 * The interactive user interfaces in modified source and object code versions
29
 * of this program must display Appropriate Legal Notices, as required under
30
 * Section 5 of the GNU Affero General Public License version 3.
31
 *
32
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
33
 * these Appropriate Legal Notices must retain the display of the "Powered by
34
 * SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
35
 * reasonably feasible for  technical reasons, the Appropriate Legal Notices must
36
 * display the words  "Powered by SugarCRM" and "Supercharged by SuiteCRM".
37
 ********************************************************************************/
38
39
/**
40
 * THIS CLASS IS GENERATED BY MODULE BUILDER
41
 * PLEASE DO NOT CHANGE THIS CLASS
42
 * PLACE ANY CUSTOMIZATIONS IN FP_events
43
 */
44
class Favorites_sugar extends Basic
45
{
46
    var $new_schema = true;
47
    var $module_dir = 'Favorites';
48
    var $object_name = 'Favorites';
49
    var $table_name = 'favorites';
50
    var $importable = false;
51
    var $disable_row_level_security = true; // to ensure that modules created and deployed under CE will continue to function under team security if the instance is upgraded to PRO
52
    var $id;
53
    var $name;
54
    var $date_entered;
55
    var $date_modified;
56
    var $modified_user_id;
57
    var $modified_by_name;
58
    var $created_by;
59
    var $created_by_name;
60
    var $description;
61
    var $deleted;
62
    var $created_by_link;
63
    var $modified_user_link;
64
    var $assigned_user_id;
65
    var $assigned_user_name;
66
    var $assigned_user_link;
67
    var $location;
68
    var $start_date;
69
    var $end_date;
70
    var $budget;
71
    var $currency_id;
72
    var $invite_templates;
73
74 9
    public function __construct()
75
    {
76 9
        parent::__construct();
77 9
    }
78
79
    /**
80
     * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
81
     */
82
    public function Favorites_sugar(){
83
        $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
84
        if(isset($GLOBALS['log'])) {
85
            $GLOBALS['log']->deprecated($deprecatedMessage);
86
        }
87
        else {
88
            trigger_error($deprecatedMessage, E_USER_DEPRECATED);
89
        }
90
        self::__construct();
91
    }
92
93
94 9
    function bean_implements($interface)
95
    {
96
        switch ($interface) {
97 9
            case 'ACL':
98 9
                return true;
99
        }
100
        return false;
101
    }
102
103
}
104
105
?>