PluginProbe
ShiftController Employee Shift Scheduling / 4.9.26
ShiftController Employee Shift Scheduling v4.9.26
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
← All changes | sh4/schedule/html/controller/dates.php +7 -29 trunk4.9.26 View file →
@@ -1,9 +1,7 @@
1 1 <?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
2 2 class SH4_Schedule_Html_Controller_Dates
3 3 {
4 - public $post;
5 -
6 4 public function __construct(
7 5 HC3_Hooks $hooks,
8 6 HC3_Post $post
9 7 )
@@ -12,42 +10,22 @@
12 10 }
13 11
14 12 public function execute()
15 13 {
16 - $p = array();
14 + $params = array();
17 15
18 16 $start = $this->post->get('start');
19 - $p['start'] = $start;
17 + $params['start'] = $start;
20 18
21 19 $end = $this->post->get('end');
22 20 if( $end ){
23 - $p['end'] = $end;
21 + $params['end'] = $end;
24 22 }
25 23
26 - $p['time'] = null;
24 + $params['time'] = NULL;
27 25
28 - // $ret = array( array('-referrer-', $p), null );
29 - $ret = array( array('schedule', $p), null );
26 + $return = array( array('-referrer-', $params), NULL );
27 + $return = array( array('schedule', $params), NULL );
30 28
31 - return $ret;
32 - }
33 -
34 - public function executeMy()
35 - {
36 - $p = array();
37 -
38 - $start = $this->post->get('start');
39 - $p['start'] = $start;
40 -
41 - $end = $this->post->get('end');
42 - if( $end ){
43 - $p['end'] = $end;
44 - }
45 -
46 - $p['time'] = null;
47 -
48 - // $ret = array( array('-referrer-', $p), null );
49 - $ret = array( array('myschedule', $p), null );
50 -
51 - return $ret;
29 + return $return;
52 30 }
53 31 }