[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage Layout 6 * 7 * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 /** 14 * @var array $displayData Array with values. 15 */ 16 extract($displayData); 17 18 /** 19 * Layout variables 20 * ----------------- 21 * @var boolean $autofocus Is autofocus enabled? 22 * @var string $class Classes for the input. 23 * @var string $description Description of the field. 24 * @var boolean $disabled Is this field disabled? 25 * @var string $group Group the field belongs to. <fields> section in form XML. 26 * @var boolean $hidden Is this field hidden in the form? 27 * @var string $hint Placeholder for the field. 28 * @var string $id DOM id of the field. 29 * @var string $label Label of the field. 30 * @var string $labelclass Classes to apply to the label. 31 * @var boolean $multiple Does this field support multiple values? 32 * @var string $name Name of the input field. 33 * @var string $onchange Onchange attribute for the field. 34 * @var string $onclick Onclick attribute for the field. 35 * @var string $pattern Pattern (Reg Ex) of value of the form field. 36 * @var boolean $readonly Is this field read only? 37 * @var boolean $repeat Allows extensions to duplicate elements. 38 * @var boolean $required Is this field required? 39 * @var boolean $spellcheck Spellcheck state for the form field. 40 * @var string $validate Validation rules to apply. 41 * @var string $value Value attribute of the field. 42 * @var array $checkedOptions Options that will be set as checked. 43 * @var boolean $hasValue Has this field a value assigned? 44 * @var array $options Options available for this field. 45 * @var array $inputType Options available for this field. 46 * @var string $accept File types that are accepted. 47 * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output 48 * @var array $dataAttributes Miscellaneous data attribute for eg, data-*. 49 */ 50 51 $attributes = [ 52 !empty($class) ? 'class="form-control ' . $class . '"' : 'class="form-control"', 53 !empty($description) ? 'aria-describedby="' . ($id ?: $name) . '-desc"' : '', 54 $disabled ? 'disabled' : '', 55 $readonly ? 'readonly' : '', 56 strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', 57 !empty($onchange) ? 'onchange="' . $onchange . '"' : '', 58 isset($max) ? 'max="' . $max . '"' : '', 59 isset($step) ? 'step="' . $step . '"' : '', 60 isset($min) ? 'min="' . $min . '"' : '', 61 $required ? 'required' : '', 62 $autofocus ? 'autofocus' : '', 63 $dataAttribute, 64 ]; 65 66 ?> 67 <input 68 type="time" 69 name="<?php echo $name; ?>" 70 id="<?php echo $id; ?>" 71 value="<?php echo $value ?>" 72 <?php echo implode(' ', $attributes); ?>> 73
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |