PluginProbe
ShiftController Employee Shift Scheduling / 4.9.66
ShiftController Employee Shift Scheduling v4.9.66
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
shiftcontroller / sh4 / new / boot.php

boot.php in ShiftController Employee Shift Scheduling 4.9.66, at sh4/new/boot.php

53 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
2 define( 'SH4_NEW_OPEN_SEPARATOR', '-' );
3
4 class SH4_New_Boot
5 {
6 public function __construct(
7 HC3_Router $router,
8 HC3_Acl $acl
9 )
10 {
11 $router
12 ->register( 'get:new', array('SH4_New_View_Dispatcher', 'render') )
13
14 ->register( 'get:new/shift', array('SH4_New_View_Calendar', 'renderShift') )
15 ->register( 'get:new/timeoff', array('SH4_New_View_Calendar', 'renderTimeoff') )
16 ->register( 'get:new/availability', array('SH4_New_View_Calendar', 'renderAvailability') )
17
18 ->register( 'get:new/calendar', array('SH4_New_View_Calendar', 'render') )
19
20 ->register( 'get:new/date', array('SH4_New_View_Date', 'render') )
21 ->register( 'get:ajax/new/date', array('SH4_New_View_Date', 'ajaxRender') )
22
23 ->register( 'get:new/employee', array('SH4_New_View_Employee', 'render') )
24 ->register( 'get:new/confirm', array('SH4_New_View_Confirm', 'render') )
25 ;
26
27 $acl
28 // ->register( 'get:new', array('SH4_New_Acl', 'checkNew') )
29
30 // ->register( 'get:new/shift', array('SH4_New_Acl', 'checkNewShift') )
31 // ->register( 'get:new/timeoff', array('SH4_New_Acl', 'checkNewTimeoff') )
32 // ->register( 'get:new/availability', array('SH4_New_Acl', 'checkNewAvailability') )
33
34 ->register( 'get:new', array('SH4_New_Acl', 'quickCheckNew') )
35 ->register( 'get:new/shift', array('SH4_New_Acl', 'quickCheckNew') )
36 ->register( 'get:new/timeoff', array('SH4_New_Acl', 'quickCheckNew') )
37 ;
38
39 $router
40 ->register( 'post:new/customtime/{calendar}', array('SH4_New_Controller_CustomTime', 'execute') )
41 ->register( 'post:new/employee', array('SH4_New_Controller_Employee', 'execute') )
42
43 ->register( 'post:new/{calendar}/{type}/{date}/{employee}/draft', array('SH4_New_Controller_Confirm', 'executeDraft') )
44 ->register( 'post:new/{calendar}/{type}/{date}/{employee}/publish', array('SH4_New_Controller_Confirm', 'executePublish') )
45 ;
46
47 $acl
48 ->register( 'post:new/{calendar}/{type}/{employee}/{date}', array('SH4_New_Acl', 'checkCreate') )
49 ->register( 'post:new/{calendar}/{type}/{employee}/{date}/draft', array('SH4_New_Acl', 'checkDraft') )
50 ->register( 'post:new/{calendar}/{type}/{employee}/{date}/publish', array('SH4_New_Acl', 'checkPublish') )
51 ;
52 }
53 }