Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
ProjectsModule.php
1 <?php
2  /*********************************************************************************
3  * Zurmo is a customer relationship management program developed by
4  * Zurmo, Inc. Copyright (C) 2017 Zurmo Inc.
5  *
6  * Zurmo is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY ZURMO, ZURMO DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  *
13  * Zurmo is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  *
23  * You can contact Zurmo, Inc. with a mailing address at 27 North Wacker Drive
24  * Suite 370 Chicago, IL 60606. or at email address contact@zurmo.com.
25  *
26  * The interactive user interfaces in original and modified versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  *
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the Zurmo
32  * logo and Zurmo copyright notice. If the display of the logo is not reasonably
33  * feasible for technical reasons, the Appropriate Legal Notices must display the words
34  * "Copyright Zurmo Inc. 2017. All rights reserved".
35  ********************************************************************************/
36 
38  {
39  const RIGHT_CREATE_PROJECTS = 'Create Projects';
40 
41  const RIGHT_DELETE_PROJECTS = 'Delete Projects';
42 
43  const RIGHT_ACCESS_PROJECTS = 'Access Projects Tab';
44 
48  public function getDependencies()
49  {
50  return array(
51  'configuration',
52  'zurmo',
53  );
54  }
55 
59  public function getRootModelNames()
60  {
61  return array('Project', 'ProjectAuditEvent');
62  }
63 
67  public static function getTranslatedRightsLabels()
68  {
70  $labels = array();
71  $labels[self::RIGHT_CREATE_PROJECTS] = Zurmo::t('ProjectsModule', 'Create ProjectsModulePluralLabel', $params);
72  $labels[self::RIGHT_DELETE_PROJECTS] = Zurmo::t('ProjectsModule', 'Delete ProjectsModulePluralLabel', $params);
73  $labels[self::RIGHT_ACCESS_PROJECTS] = Zurmo::t('ProjectsModule', 'Access ProjectsModulePluralLabel Tab', $params);
74  return $labels;
75  }
76 
80  public static function getDefaultMetadata()
81  {
82  $metadata = array();
83  $metadata['global'] = array(
84  'designerMenuItems' => array(
85  'showFieldsLink' => true,
86  'showGeneralLink' => true,
87  'showLayoutsLink' => true,
88  'showMenusLink' => true,
89  ),
90  'shortcutsCreateMenuItems' => array(
91  array(
92  'label' => "eval:Zurmo::t('ProjectsModule', 'ProjectsModuleSingularLabel', \$translationParams)",
93  'url' => array('/projects/default/create'),
94  'right' => self::RIGHT_CREATE_PROJECTS,
95  'mobile' => true,
96  ),
97  ),
98  'globalSearchAttributeNames' => array(
99  'name'
100  ),
101  'tabMenuItems' => array(
102  array(
103  'label' => "eval:Zurmo::t('ProjectsModule', 'ProjectsModulePluralLabel', \$translationParams)",
104  'url' => array('/projects/default/dashboardDetails'),
105  'right' => self::RIGHT_ACCESS_PROJECTS,
106  'mobile' => false
107  ),
108  ),
109  );
110  return $metadata;
111  }
112 
116  public static function getPrimaryModelName()
117  {
118  return 'Project';
119  }
120 
124  public static function getSingularCamelCasedName()
125  {
126  return 'Project';
127  }
128 
132  protected static function getSingularModuleLabel($language)
133  {
134  return Zurmo::t('ProjectsModule', 'Project', array(), null, $language);
135  }
136 
140  protected static function getPluralModuleLabel($language)
141  {
142  return Zurmo::t('ProjectsModule', 'Projects', array(), null, $language);
143  }
144 
148  public static function getAccessRight()
149  {
150  return self::RIGHT_ACCESS_PROJECTS;
151  }
152 
156  public static function getCreateRight()
157  {
158  return self::RIGHT_CREATE_PROJECTS;
159  }
160 
164  public static function getDeleteRight()
165  {
166  return self::RIGHT_DELETE_PROJECTS;
167  }
168 
172  public static function getDefaultDataMakerClassName()
173  {
174  return null;
175  }
176 
180  public static function getDemoDataMakerClassNames()
181  {
182  return array('ProjectsDemoDataMaker');
183  }
184 
188  public static function getGlobalSearchFormClassName()
189  {
190  return 'ProjectsSearchForm';
191  }
192 
196  public static function hasPermissions()
197  {
198  return true;
199  }
200 
204  public static function isReportable()
205  {
206  return true;
207  }
208 
212  public static function canHaveWorkflow()
213  {
214  return true;
215  }
216 
217  public static function canHaveContentTemplates()
218  {
219  return true;
220  }
221  }
222 ?>
static getGlobalSearchFormClassName()
static getTranslatedRightsLabels()
static getTranslationParamsForAllModules()
Definition: LabelUtil.php:75
static getDefaultMetadata()
static getPrimaryModelName()
static getCreateRight()
static getDeleteRight()
static hasPermissions()
static canHaveWorkflow()
static getSingularCamelCasedName()
static getAccessRight()
static isReportable()
static getDefaultDataMakerClassName()
static getPluralModuleLabel($language)
static getSingularModuleLabel($language)
static getDemoDataMakerClassNames()
Generated on Sun Nov 29 2020 07:10:28
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.