# shiftcontroller/4.9.66/sh4/schedule/html/controller/dates.php

ShiftController Employee Shift Scheduling, version 4.9.66. 53 lines.

- Page: https://pluginprobe.com/plugins/shiftcontroller/4.9.66/code/sh4/schedule/html/controller/dates.php
- Raw: https://pluginprobe.com/plugins/shiftcontroller/4.9.66/raw/sh4/schedule/html/controller/dates.php
- Modified: 2023-05-29T12:46:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/shiftcontroller/4.9.66/code/sh4/schedule/html/controller/dates.php#L10-L20`.

```php
<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
class SH4_Schedule_Html_Controller_Dates
{
	public $post;

	public function __construct(
		HC3_Hooks $hooks,
		HC3_Post $post
		)
	{
		$this->post = $hooks->wrap($post);
	}

	public function execute()
	{
		$p = array();

		$start = $this->post->get('start');
		$p['start'] = $start;

		$end = $this->post->get('end');
		if( $end ){
			$p['end'] = $end;
		}

		$p['time'] = null;

		// $ret = array( array('-referrer-', $p), null );
		$ret = array( array('schedule', $p), null );

		return $ret;
	}

	public function executeMy()
	{
		$p = array();

		$start = $this->post->get('start');
		$p['start'] = $start;

		$end = $this->post->get('end');
		if( $end ){
			$p['end'] = $end;
		}

		$p['time'] = null;

		// $ret = array( array('-referrer-', $p), null );
		$ret = array( array('myschedule', $p), null );

		return $ret;
	}
}
```
