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

Details

at line 129
__construct(string $name, string $entity, string $dataType = 'String')

Parameters

string $name
string $entity
string $dataType

at line 138
mixed getDefaultValue()

Return Value

mixed

at line 147
$this setDefaultValue(mixed $defaultValue)

Parameters

mixed $defaultValue

Return Value

$this

at line 156
string getName()

Return Value

string

at line 165
$this setName(string $name)

Parameters

string $name

Return Value

$this

at line 174
string getTitle()

Return Value

string

at line 183
$this setTitle(string $title)

Parameters

string $title

Return Value

$this

at line 192
string getEntity()

Return Value

string

at line 199
string getDescription()

Return Value

string

at line 208
$this setDescription(string $description)

Parameters

string $description

Return Value

$this

at line 217
bool isRequired()

Return Value

bool

at line 226
$this setRequired(bool $required)

Parameters

bool $required

Return Value

$this

at line 235
bool getRequiredIf()

Return Value

bool

at line 244
$this setRequiredIf(bool $requiredIf)

Parameters

bool $requiredIf

Return Value

$this

at line 253
string getDataType()

Return Value

string

at line 263
$this setDataType($dataType)

Parameters

$dataType

Return Value

$this

Exceptions

Exception

at line 280
int getSerialize()

Return Value

int

at line 288
$this setSerialize(int|null $serialize)

Parameters

int|null $serialize

Return Value

$this

at line 298
$this setPermission(array $permission)

Parameters

array $permission

Return Value

$this

at line 306
array getPermission()

Return Value

array

at line 313
string getInputType()

Return Value

string

at line 321
$this setInputType(string $inputType)

Parameters

string $inputType

Return Value

$this

at line 330
array getInputAttrs()

Return Value

array

at line 338
$this setInputAttrs(array $inputAttrs)

Parameters

array $inputAttrs

Return Value

$this

at line 359
array getOptions()

Return Value

array

at line 385
$this setOptions(array|bool $options)

Parameters

array|bool $options

Return Value

$this

at line 393
string getFkEntity()

Return Value

string

at line 402
$this setFkEntity(string $fkEntity)

Parameters

string $fkEntity

Return Value

$this

at line 412
array toArray(array $values = [])

Parameters

array $values

Return Value

array