<?php
 namespace App\Form\Input; class Cloned_DateInterval extends \Engine\Form\Input\ElementAbstract { protected $class = "clonedDateInterval"; public function __construct($label=null, $name=null, $value=null) { parent::__construct($label, $name, $value); $this->settings['minItems'] = 1; $this->settings['operations'] = []; $this->settings['operations']['add'] = true; $this->settings['operations']['remove'] = true; } public function setValue($value){ if(!is_array($value)){ $value = []; } $this->value = $value; return $this; } protected function loadTranslations($templateClass = null) { parent::loadTranslations(); \App\Loader_Lang::getInstance()->loadAppFile('_customLoad/formField/inputs/inputClonedDateInterval.lang.php'); } } 