52 $this->rights_class =
'bookcal';
56 $this->family =
"projects";
59 $this->module_position =
'50';
64 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
69 $this->descriptionlong =
"BookCalDescription";
72 $this->version =
'experimental';
75 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
81 $this->picto =
'bookcal';
84 $this->module_parts = array(
120 'moduleforexternal' => 0,
125 $this->dirs = array(
"/bookcal/temp");
128 $this->config_page_url = array(
"setup.php@bookcal");
132 $this->hidden =
false;
134 $this->depends = array();
135 $this->requiredby = array();
136 $this->conflictwith = array();
139 $this->langfiles = array(
"agenda");
142 $this->warnings_activation = array();
143 $this->warnings_activation_ext = array();
152 $this->
const = array();
160 if (!isset(
$conf->bookcal) || !isset(
$conf->bookcal->enabled)) {
162 $conf->bookcal->enabled = 0;
166 $this->tabs = array();
194 $this->dictionaries = array();
223 $this->boxes = array(
234 $this->cronjobs = array(
256 $this->rights = array();
260 $this->rights[$r][0] = $this->numero . sprintf(
'%02d', (0 * 10) + 1);
261 $this->rights[$r][1] =
'Read objects of BookCal';
262 $this->rights[$r][4] =
'availabilities';
263 $this->rights[$r][5] =
'read';
265 $this->rights[$r][0] = $this->numero . sprintf(
'%02d', (0 * 10) + 2);
266 $this->rights[$r][1] =
'Create/Update objects of BookCal';
267 $this->rights[$r][4] =
'availabilities';
268 $this->rights[$r][5] =
'write';
270 $this->rights[$r][0] = $this->numero . sprintf(
'%02d', (0 * 10) + 3);
271 $this->rights[$r][1] =
'Delete objects of BookCal';
272 $this->rights[$r][4] =
'availabilities';
273 $this->rights[$r][5] =
'delete';
275 $this->rights[$r][0] = $this->numero . sprintf(
'%02d', (1 * 10) + 1);
276 $this->rights[$r][1] =
'Read Calendar object of BookCal';
277 $this->rights[$r][4] =
'calendar';
278 $this->rights[$r][5] =
'read';
280 $this->rights[$r][0] = $this->numero . sprintf(
'%02d', (1 * 10) + 2);
281 $this->rights[$r][1] =
'Create/Update Calendar object of BookCal';
282 $this->rights[$r][4] =
'calendar';
283 $this->rights[$r][5] =
'write';
285 $this->rights[$r][0] = $this->numero . sprintf(
'%02d', (1 * 10) + 3);
286 $this->rights[$r][1] =
'Delete Calendar object of BookCal';
287 $this->rights[$r][4] =
'calendar';
288 $this->rights[$r][5] =
'delete';
294 $this->menu = array();
316 $this->menu[$r++] = array(
317 'fk_menu' =>
'fk_mainmenu=agenda',
319 'titre' =>
'MenuBookcalIndex',
320 'prefix' =>
img_picto(
'', $this->picto,
'class="paddingright pictofixedwidth em92"'),
321 'mainmenu' =>
'agenda',
322 'leftmenu' =>
'bookcal',
323 'url' =>
'/bookcal/bookcalindex.php',
324 'langs' =>
'bookcal',
325 'position' => 1100 + $r,
327 'perms' =>
'$user->rights->bookcal->calendar->read',
331 $this->menu[$r++] = array(
333 'fk_menu' =>
'fk_mainmenu=agenda,fk_leftmenu=bookcal',
336 'titre' =>
'Calendar',
337 'mainmenu' =>
'agenda',
338 'leftmenu' =>
'bookcal_calendar_list',
339 'url' =>
'/bookcal/calendar_list.php',
341 'langs' =>
'bookcal',
342 'position' => 1100 + $r,
344 'enabled' =>
'$conf->bookcal->enabled',
346 'perms' =>
'$user->rights->bookcal->calendar->read',
351 $this->menu[$r++] = array(
353 'fk_menu' =>
'fk_mainmenu=agenda,fk_leftmenu=bookcal_calendar_list',
356 'titre' =>
'NewCalendar',
357 'mainmenu' =>
'agenda',
358 'leftmenu' =>
'bookcal_new',
359 'url' =>
'/bookcal/calendar_card.php?action=create',
361 'langs' =>
'bookcal',
362 'position' => 1100 + $r,
364 'enabled' =>
'$conf->bookcal->enabled',
366 'perms' =>
'$user->rights->bookcal->calendar->read',
419 $this->menu[$r++] = array(
421 'fk_menu' =>
'fk_mainmenu=agenda,fk_leftmenu=bookcal',
424 'titre' =>
'Availabilities',
425 'mainmenu' =>
'agenda',
426 'leftmenu' =>
'bookcal_availabilities',
427 'url' =>
'/bookcal/availabilities_list.php',
429 'langs' =>
'bookcal',
430 'position' => 1200 + $r,
432 'enabled' =>
'$conf->bookcal->enabled',
434 'perms' =>
'$user->rights->bookcal->availabilities->read',
439 $this->menu[$r++] = array(
441 'fk_menu' =>
'fk_mainmenu=agenda,fk_leftmenu=bookcal_availabilities',
444 'titre' =>
'NewAvailabilities',
445 'mainmenu' =>
'agenda',
446 'leftmenu' =>
'bookcal_availabilities',
447 'url' =>
'/bookcal/availabilities_card.php?action=create',
449 'langs' =>
'bookcal',
450 'position' => 1200 + $r,
452 'enabled' =>
'$conf->bookcal->enabled',
454 'perms' =>
'$user->rights->bookcal->availabilities->read',