| @@ -6,9 +6,8 @@ | ||
| 6 | 6 | HC3_Settings $settings, |
| 7 | 7 | HC3_Ui_Topmenu $topmenu, |
| 8 | 8 | HC3_Router $router, |
| 9 | 9 | HC3_Acl $acl, |
| 10 | - HC3_Hooks $hooks, | |
| 11 | 10 | |
| 12 | 11 | SH4_App_Migration $migration |
| 13 | 12 | ) |
| 14 | 13 | { |
| @@ -29,24 +28,16 @@ | ||
| 29 | 28 | ->init( 'datetime_max_time', 24*60*60 ) |
| 30 | 29 | ->init( 'datetime_step', 5*60 ) |
| 31 | 30 | |
| 32 | 31 | ->init( 'datetime_hide_schedule_reports', 0 ) |
| 33 | - ->init( 'datetime_summary_by_calendar', 0 ) | |
| 34 | 32 | ->init( 'datetime_hide_bottom_date_navigation', 0 ) |
| 35 | - ->init( 'datetime_month_slim_view', 1 ) | |
| 36 | - ->init( 'datetime_compact_shift_label', 'abbr' ) | |
| 37 | - | |
| 38 | 33 | ->init( 'conflicts_calendar_only', 0 ) |
| 39 | 34 | ->init( 'shifts_no_draft', 0 ) |
| 40 | - ->init( 'shifts_confirm_publish', 0 ) | |
| 41 | - ->init( 'datetime_minimalistic_week', 0 ) | |
| 42 | - ->init( 'datetime_days_in_week', 7 ) | |
| 43 | 35 | |
| 44 | 36 | ->init( 'default_schedule_view', 'week' ) |
| 45 | 37 | ->init( 'default_schedule_groupby', 'employee' ) |
| 46 | 38 | |
| 47 | 39 | ->init( 'datetime_n_weeks', 4 ) |
| 48 | - ->init( 'pref_csv_separator', ',' ) | |
| 49 | 40 | ; |
| 50 | 41 | |
| 51 | 42 | $topmenu |
| 52 | 43 | ->addAfter( NULL, 'profile', array('user/profile', '__Profile__') ) |
| @@ -57,9 +48,8 @@ | ||
| 57 | 48 | ->register( 'get:admin', array('SH4_App_Html_View_Admin', 'render') ) |
| 58 | 49 | |
| 59 | 50 | ->register( 'get:admin/about', array('SH4_App_Html_View_Admin_About', 'render') ) |
| 60 | 51 | |
| 61 | - ->register( 'get:admin/reinstall', array('SH4_App_Html_Controller_Admin_Reinstall', 'execute') ) | |
| 62 | 52 | ->register( 'post:admin/reinstall', array('SH4_App_Html_Controller_Admin_Reinstall', 'execute') ) |
| 63 | 53 | ->register( 'post:admin/reinstall/shifts', array('SH4_App_Html_Controller_Admin_Reinstall', 'executeShifts') ) |
| 64 | 54 | ->register( 'get:cron', array('SH4_App_Html_Cron', 'run') ) |
| 65 | 55 | ; |
| @@ -90,19 +80,7 @@ | ||
| 90 | 80 | ->register( 'get:user/{anything}', array('SH4_App_Acl', 'checkUser') ) |
| 91 | 81 | ->register( 'post:user/{anything}', array('SH4_App_Acl', 'checkUser') ) |
| 92 | 82 | ->register( 'get:user/{anything}/{anything}', array('SH4_App_Acl', 'checkUser') ) |
| 93 | 83 | ->register( 'post:user/{anything}/{anything}', array('SH4_App_Acl', 'checkUser') ) |
| 94 | - ; | |
| 95 | - | |
| 96 | - $hooks | |
| 97 | - ->add( 'sh4/users/html/user/view/profile::menu::after', function( $ret ){ | |
| 98 | - $ret['pref'] = array( 'user/profile/pref', '__Preferences__' ); | |
| 99 | - return $ret; | |
| 100 | - }) | |
| 101 | - ; | |
| 102 | - | |
| 103 | - $router | |
| 104 | - ->register( 'get:user/profile/pref', array('SH4_App_Html_View_User_Pref', 'get') ) | |
| 105 | - ->register( 'post:user/profile/pref', array('SH4_App_Html_View_User_Pref', 'post') ) | |
| 106 | 84 | ; |
| 107 | 85 | } |
| 108 | 86 | } |