FieldSpec
class FieldSpec
Properties
| protected mixed | $defaultValue | ||
| protected string | $name | ||
| protected string | $title | ||
| protected string | $entity | ||
| protected string | $description | ||
| protected bool | $required | ||
| protected bool | $requiredIf | ||
| protected array|bool | $options | ||
| protected string | $dataType | ||
| protected string | $inputType | ||
| protected array | $inputAttrs | ||
| protected string | $fkEntity | ||
| protected int | $serialize | ||
| protected array | $permission | ||
| static array | $typeAliases | Aliases for the valid data types |
Methods
__construct(string $name, string $entity, string $dataType = 'String')
No description
mixed
getDefaultValue()
No description
$this
setDefaultValue(mixed $defaultValue)
No description
string
getName()
No description
$this
setName(string $name)
No description
string
getTitle()
No description
$this
setTitle(string $title)
No description
string
getEntity()
No description
string
getDescription()
No description
$this
setDescription(string $description)
No description
bool
isRequired()
No description
$this
setRequired(bool $required)
No description
bool
getRequiredIf()
No description
$this
setRequiredIf(bool $requiredIf)
No description
string
getDataType()
No description
$this
setDataType($dataType)
No description
int
getSerialize()
No description
$this
setSerialize(int|null $serialize)
No description
$this
setPermission(array $permission)
No description
array
getPermission()
No description
string
getInputType()
No description
$this
setInputType(string $inputType)
No description
array
getInputAttrs()
No description
$this
setInputAttrs(array $inputAttrs)
No description
array
getOptions()
No description
$this
setOptions(array|bool $options)
No description
string
getFkEntity()
No description
$this
setFkEntity(string $fkEntity)
No description
array
toArray(array $values = [])
No description