Common\Core\Form::addTime PHP Метод

addTime() публичный Метод

Adds a single time field.
public addTime ( string $name, string $value = null, string $class = null, string $classError = null ) : SpoonFormTime
$name string The name of the element.
$value string The value inside the element.
$class string Class(es) that will be applied on the element.
$classError string Class(es) that will be applied on the element when an error occurs.
Результат SpoonFormTime
    public function addTime($name, $value = null, $class = null, $classError = null)
    {
        $name = (string) $name;
        $value = $value !== null ? (string) $value : null;
        $class = $class !== null ? (string) $class : 'form-control fork-form-time inputTime';
        $classError = $classError !== null ? (string) $classError : 'error';
        // create and return a time field
        return parent::addTime($name, $value, $class, $classError);
    }