Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
CalendarsModule.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_CALENDAR = 'Create Calendar';
40  const RIGHT_DELETE_CALENDAR = 'Delete Calendar';
41  const RIGHT_ACCESS_CALENDAR = 'Access Calandar Tab';
42 
47  public function getDependencies()
48  {
49  return array(
50  'configuration',
51  'zurmo',
52  );
53  }
54 
58  public function getRootModelNames()
59  {
60  return array('SavedCalendar');
61  }
62 
66  public static function getTranslatedRightsLabels()
67  {
69  $labels = array();
70  $labels[self::RIGHT_CREATE_CALENDAR] = Zurmo::t('CalendarsModule', 'Create CalendarsModulePluralLabel', $params);
71  $labels[self::RIGHT_DELETE_CALENDAR] = Zurmo::t('CalendarsModule', 'Delete CalendarsModulePluralLabel', $params);
72  $labels[self::RIGHT_ACCESS_CALENDAR] = Zurmo::t('CalendarsModule', 'Access CalendarsModulePluralLabel Tab', $params);
73  return $labels;
74  }
75 
79  public static function getDefaultMetadata()
80  {
81  $metadata = array();
82  $metadata['global'] = array(
83  'globalSearchAttributeNames' => array(
84  'name'
85  ),
86  'tabMenuItems' => array(
87  array(
88  'label' => "eval:Zurmo::t('CalendarsModule', 'CalendarsModulePluralLabel', \$translationParams)",
89  'url' => array('/calendars/default'),
90  'right' => self::RIGHT_ACCESS_CALENDAR,
91  ),
92  ),
93  );
94  return $metadata;
95  }
96 
100  public static function getPrimaryModelName()
101  {
102  return 'SavedCalendar';
103  }
104 
108  public static function getSingularCamelCasedName()
109  {
110  return 'Calendars';
111  }
112 
116  protected static function getSingularModuleLabel($language)
117  {
118  return Zurmo::t('Core', 'Calendar', array(), null, $language);
119  }
120 
124  protected static function getPluralModuleLabel($language)
125  {
126  return Zurmo::t('CalendarsModule', 'Calendars', array(), null, $language);
127  }
128 
132  public static function getAccessRight()
133  {
134  return self::RIGHT_ACCESS_CALENDAR;
135  }
136 
140  public static function getCreateRight()
141  {
142  return self::RIGHT_CREATE_CALENDAR;
143  }
144 
148  public static function getDeleteRight()
149  {
150  return self::RIGHT_DELETE_CALENDAR;
151  }
152 
156  public static function getGlobalSearchFormClassName()
157  {
158  return 'CalendarsSearchForm';
159  }
160 
164  public static function hasPermissions()
165  {
166  return true;
167  }
168 
172  public static function isReportable()
173  {
174  return false;
175  }
176 
180  public static function modelsAreNeverGloballySearched()
181  {
182  return true;
183  }
184 
188  public static function canHaveWorkflow()
189  {
190  return false;
191  }
192 
196  public static function canHaveContentTemplates()
197  {
198  return true;
199  }
200  }
201 ?>
static getTranslationParamsForAllModules()
Definition: LabelUtil.php:75
static getPrimaryModelName()
static getDefaultMetadata()
static getSingularModuleLabel($language)
static canHaveContentTemplates()
static getSingularCamelCasedName()
static getGlobalSearchFormClassName()
static getTranslatedRightsLabels()
static canHaveWorkflow()
static modelsAreNeverGloballySearched()
static getPluralModuleLabel($language)
Generated on Sun Nov 29 2020 07:10:23
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.