# shiftcontroller/4.9.85/hc3/_wordpress/crudfactory.php

ShiftController Employee Shift Scheduling, version 4.9.85. 18 lines.

- Page: https://pluginprobe.com/plugins/shiftcontroller/4.9.85/code/hc3/_wordpress/crudfactory.php
- Raw: https://pluginprobe.com/plugins/shiftcontroller/4.9.85/raw/hc3/_wordpress/crudfactory.php
- Modified: 2018-07-17T13:24:56+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.85/code/hc3/_wordpress/crudfactory.php#L10-L20`.

```php
<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
class HC3_CrudFactory implements HC3_ICrudFactory
{
	protected $prefix = 'hc3-';

	public function __construct( $prefix )
	{
		$this->prefix = $prefix;
	}

	public function make( $entity, $multi = TRUE )
	{
		$postType = $this->prefix . $entity;
		$return = new HC3_Crud_Wordpress_CustomPost( $postType );
		return $return;
	}
}

```
