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 / _wordpress / users / boot.php

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

28 lines 975 B
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_Users_Boot
3 {
4 public function __construct(
5 HC3_Hooks $hooks,
6 HC3_Router $router
7 )
8 {
9 $hooks
10 ->add( 'sh4/app/html/view/admin::menu::after', function( $ret ){
11 $ret['31-admin/users'] = array( 'admin/users', '__Users__' );
12 return $ret;
13 })
14 ;
15
16 $router
17 ->register( 'get:admin/users', array('SH4_Users_Html_Admin_View_Index', 'render') )
18
19 ->register( 'get:admin/users/{id}/employee', array('SH4_Users_Html_Admin_View_Employee', 'render') )
20 ->register( 'post:admin/users/{id}/employee/{employeeid}', array('SH4_Users_Html_Admin_Controller_Employee', 'execute') )
21
22 ->register( 'get:user/profile', array('SH4_Users_Html_User_View_Profile', 'render') )
23 ->register( 'get:user/profile/roles', array('SH4_Users_Html_User_View_Profile_Roles', 'render') )
24
25 ->register( 'get:login', array('SH4_Users_Html_Anon_View_Login', 'render') )
26 ;
27 }
28 }