# shiftcontroller/4.9.66/hc3/ui/element/input/hidden.php

ShiftController Employee Shift Scheduling, version 4.9.66. 28 lines.

- Page: https://pluginprobe.com/plugins/shiftcontroller/4.9.66/code/hc3/ui/element/input/hidden.php
- Raw: https://pluginprobe.com/plugins/shiftcontroller/4.9.66/raw/hc3/ui/element/input/hidden.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/hc3/ui/element/input/hidden.php#L10-L20`.

```php
<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
class HC3_Ui_Element_Input_Hidden extends HC3_Ui_Abstract_Input
{
	protected $el = 'input';
	protected $uiType = 'input/hidden';
	public $ui, $name;

	public function __construct( $ui, $name, $value = null )
	{
		$this->ui = $ui;
		$this->name = $name;
		$this->setValue( $value );
	}

	public function render()
	{
		$out = $this->ui->makeElement('input')
			->addAttr('type', 'hidden' )
			->addAttr('name', $this->htmlName() )
			;

		if( (! is_array($this->value)) && (null !== $this->value) && strlen($this->value) ){
			$out->addAttr('value', $this->value);
		}

		return $out;
	}
}
```
