2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
39 define('MB_BASEMETADATALOCATION','base');
40 define('MB_CUSTOMMETADATALOCATION','custom');
41 define('MB_WORKINGMETADATALOCATION','working');
42 define('MB_HISTORYMETADATALOCATION','history');
43 define('MB_GRIDLAYOUTMETADATA','gridLayoutMetaData');
44 define('MB_LISTLAYOUTMETADATA','listLayoutMetaData');
45 define('MB_LISTVIEW','listview');
46 define('MB_SEARCHVIEW','searchview');
47 define('MB_BASICSEARCH','basic_search' );
48 define('MB_ADVANCEDSEARCH','advanced_search' );
49 define('MB_DASHLET','dashlet');
50 define('MB_DASHLETSEARCH','dashletsearch');
51 define('MB_EDITVIEW','editview');
52 define('MB_DETAILVIEW','detailview');
53 define('MB_QUICKCREATE','quickcreate');
54 define('MB_POPUPLIST','popuplist');
55 define('MB_POPUPSEARCH','popupsearch');
56 define('MB_LABEL','label');
57 define('MB_ONETOONE', 'one-to-one');
58 define('MB_ONETOMANY', 'one-to-many');
59 define('MB_MANYTOONE', 'many-to-one');
60 define('MB_MANYTOMANY', 'many-to-many');
61 define('MB_MAXDBIDENTIFIERLENGTH',30); // maximum length of any identifier in our supported databases
62 define('MB_EXPORTPREPEND','project_');
63 define('MB_VISIBILITY','visibility');
67 static $EMPTY = array ( 'name' => '(empty)' , 'label' => '(empty)' ) ;
68 static $FILLER = array ( 'name' => '(filler)' , 'label' => 'LBL_FILLER' ) ; // would prefer to have label => translate('LBL_FILLER') but can't be done in a static, and don't want to require instantiating a new object to get these constants