fix: Определения типов
This commit is contained in:
parent
9f6fd74b17
commit
dd74a97894
28 changed files with 334 additions and 249 deletions
|
|
@ -11,9 +11,9 @@ class Field
|
|||
public $label; // Метка поля
|
||||
public $value; // Значение поля
|
||||
public $type = ""; // Каждому типу элемента соответствует макрос TAL
|
||||
public $error_msg = null;
|
||||
public $default = null;
|
||||
public $error = false;
|
||||
public $error_msg = null;
|
||||
public $default = null;
|
||||
public $error = false;
|
||||
public $require = false;
|
||||
public $hint = null;
|
||||
public $maxlength = null;
|
||||
|
|
@ -22,10 +22,10 @@ class Field
|
|||
public $_title = array();
|
||||
public $description = "";
|
||||
public $alias = array();
|
||||
|
||||
|
||||
/** @phpstan-ignore-next-line */
|
||||
public function __construct ($input = [], $factory = null)
|
||||
{
|
||||
{
|
||||
$this->default = null;
|
||||
if (isset($input['validate'])) {
|
||||
$this->require = strpos($input['validate'], 'require') !== false;
|
||||
|
|
@ -41,7 +41,10 @@ class Field
|
|||
}
|
||||
}
|
||||
|
||||
function setValue($value/*: any*/)
|
||||
/**
|
||||
* @param mixed $value
|
||||
*/
|
||||
function setValue($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue