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

ShiftController Employee Shift Scheduling, version 4.9.26. 31 lines.

- Page: https://pluginprobe.com/plugins/shiftcontroller/4.9.26/code/sh4/schedule/html/controller/dates.php
- Raw: https://pluginprobe.com/plugins/shiftcontroller/4.9.26/raw/sh4/schedule/html/controller/dates.php
- Modified: 2022-08-31T13:44:26+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.26/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 function __construct(
		HC3_Hooks $hooks,
		HC3_Post $post
		)
	{
		$this->post = $hooks->wrap($post);
	}

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

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

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

		$params['time'] = NULL;

		$return = array( array('-referrer-', $params), NULL );
		$return = array( array('schedule', $params), NULL );

		return $return;
	}
}
```
