PluginProbe
ShiftController Employee Shift Scheduling / 4.9.95
ShiftController Employee Shift Scheduling v4.9.95
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 / html / admin / view / conflicts.php

conflicts.php in ShiftController Employee Shift Scheduling 4.9.95, at sh4/conf/html/admin/view/conflicts.php

75 lines 1.6 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 #[AllowDynamicProperties]
3 class SH4_Conf_Html_Admin_View_Conflicts
4 {
5 protected $ui = NULL;
6 protected $settings = NULL;
7
8 public function __construct(
9 HC3_Hooks $hooks,
10
11 HC3_Ui $ui,
12 HC3_Ui_Layout1 $layout,
13 HC3_Time $t,
14
15 HC3_Settings $settings
16 )
17 {
18 $this->ui = $ui;
19 $this->layout = $layout;
20 $this->t = $t;
21
22 $this->settings = $hooks->wrap($settings);
23 $this->self = $hooks->wrap($this);
24 }
25
26 public function render()
27 {
28 $pnames = array(
29 'conflicts_calendar_only',
30 );
31 foreach( $pnames as $pname ){
32 $values[$pname] = $this->settings->get($pname);
33 }
34 $inputs = array();
35
36 $inputs[] = $this->ui->makeInputCheckbox(
37 'conflicts_calendar_only',
38 '__Conflict only if overlapping shifts are in the same calendar__',
39 1,
40 $values['conflicts_calendar_only']
41 );
42
43 $inputs = $this->ui->makeList( $inputs );
44
45 $out = $this->ui->makeForm(
46 'admin/conf/conflicts',
47 $this->ui->makeList(
48 array( $inputs, $this->ui->makeInputSubmit( '__Save__')->tag('primary') )
49 )
50 );
51
52 $this->layout
53 ->setContent( $out )
54 ->setBreadcrumb( $this->self->breadcrumb() )
55 ->setHeader( $this->self->header() )
56 // ->setMenu( $this->self->menu() )
57 ;
58
59 $out = $this->layout->render();
60 return $out;
61 }
62
63 public function header()
64 {
65 $out = '__Conflicts__';
66 return $out;
67 }
68
69 public function breadcrumb()
70 {
71 $return = array();
72 $return['admin'] = array( 'admin', '__Administration__' );
73 return $return;
74 }
75 }