# shiftcontroller/4.9.66/sh4/conf/html/admin/controller/conflicts.php

ShiftController Employee Shift Scheduling, version 4.9.66. 29 lines.

- Page: https://pluginprobe.com/plugins/shiftcontroller/4.9.66/code/sh4/conf/html/admin/controller/conflicts.php
- Raw: https://pluginprobe.com/plugins/shiftcontroller/4.9.66/raw/sh4/conf/html/admin/controller/conflicts.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/conf/html/admin/controller/conflicts.php#L10-L20`.

```php
<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
#[AllowDynamicProperties]
class SH4_Conf_Html_Admin_Controller_Conflicts
{
	public function __construct(
		HC3_Hooks $hooks,
		HC3_Post $post,
		HC3_Settings $settings
		)
	{
		$this->post = $hooks->wrap($post);
		$this->settings = $hooks->wrap($settings);
	}

	public function execute()
	{
		$take = array(
			'conflicts_calendar_only'
			);

		foreach( $take as $k ){
			$v = $this->post->get($k);
			$this->settings->set( $k, $v );
		}

		$return = array( 'admin/conf/conflicts', '__Settings Updated__' );
		return $return;
	}
}
```
