PluginProbe
ShiftController Employee Shift Scheduling / trunk
ShiftController Employee Shift Scheduling vtrunk
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 / conf / boot.php

boot.php in ShiftController Employee Shift Scheduling trunk, at sh4/conf/boot.php

33 lines 1.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 class SH4_Conf_Boot
3 {
4 public function __construct(
5 SH4_Conf_Migration $migration,
6 HC3_Hooks $hooks,
7 HC3_Router $router
8 )
9 {
10 $migration->up();
11
12 $hooks
13 ->add( 'sh4/app/html/view/admin::menu::after', function( $ret ){
14 $ret['21-admin/datetime'] = array( 'admin/conf/datetime', '__Date and Time__' );
15 $ret['22-admin/conflicts'] = array( 'admin/conf/conflicts', '__Conflicts__' );
16 $ret['23-admin/shiftstatus'] = array( 'admin/conf/shiftstatus', '__Shift Status__' );
17 $ret['99-admin/about'] = array( 'admin/about', '__About__' );
18 return $ret;
19 })
20 ;
21
22 $router
23 ->register( 'get:admin/conf/datetime', array('SH4_Conf_Html_Admin_View_Datetime', 'render') )
24 ->register( 'post:admin/conf/datetime', array('SH4_Conf_Html_Admin_Controller_Datetime', 'execute') )
25
26 ->register( 'get:admin/conf/conflicts', array('SH4_Conf_Html_Admin_View_Conflicts', 'render') )
27 ->register( 'post:admin/conf/conflicts', array('SH4_Conf_Html_Admin_Controller_Conflicts', 'execute') )
28
29 ->register( 'get:admin/conf/shiftstatus', array('SH4_Conf_Html_Admin_View_ShiftStatus', 'render') )
30 ->register( 'post:admin/conf/shiftstatus', array('SH4_Conf_Html_Admin_Controller_ShiftStatus', 'execute') )
31 ;
32 }
33 }