class CustomFieldSpec extends FieldSpec

Properties

protected mixed $defaultValue from FieldSpec
protected string $name from FieldSpec
protected string $title from FieldSpec
protected string $entity from FieldSpec
protected string $description from FieldSpec
protected bool $required from FieldSpec
protected bool $requiredIf from FieldSpec
protected array|bool $options from FieldSpec
protected string $dataType from FieldSpec
protected string $inputType from FieldSpec
protected array $inputAttrs from FieldSpec
protected string $fkEntity from FieldSpec
protected int $serialize from FieldSpec
protected array $permission from FieldSpec
static array $typeAliases Aliases for the valid data types from FieldSpec
protected int $customFieldId
protected int $customGroup
protected string $tableName
protected string $columnName

Methods

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

No description

from FieldSpec
mixed
getDefaultValue()

No description

from FieldSpec
$this
setDefaultValue(mixed $defaultValue)

No description

from FieldSpec
string
getName()

No description

from FieldSpec
$this
setName(string $name)

No description

from FieldSpec
string
getTitle()

No description

from FieldSpec
$this
setTitle(string $title)

No description

from FieldSpec
string
getEntity()

No description

from FieldSpec
string
getDescription()

No description

from FieldSpec
$this
setDescription(string $description)

No description

from FieldSpec
bool
isRequired()

No description

from FieldSpec
$this
setRequired(bool $required)

No description

from FieldSpec
bool
getRequiredIf()

No description

from FieldSpec
$this
setRequiredIf(bool $requiredIf)

No description

from FieldSpec
string
getDataType()

No description

from FieldSpec
$this
setDataType($dataType)

No description

int
getSerialize()

No description

from FieldSpec
$this
setSerialize(int|null $serialize)

No description

from FieldSpec
$this
setPermission(array $permission)

No description

from FieldSpec
array
getPermission()

No description

from FieldSpec
string
getInputType()

No description

from FieldSpec
$this
setInputType(string $inputType)

No description

from FieldSpec
array
getInputAttrs()

No description

from FieldSpec
$this
setInputAttrs(array $inputAttrs)

No description

from FieldSpec
array
getOptions()

No description

from FieldSpec
$this
setOptions(array|bool $options)

No description

from FieldSpec
string
getFkEntity()

No description

from FieldSpec
$this
setFkEntity(string $fkEntity)

No description

from FieldSpec
array
toArray(array $values = [])

No description

from FieldSpec
int
getCustomFieldId()

No description

$this
setCustomFieldId(int $customFieldId)

No description

int
getCustomGroupName()

No description

$this
setCustomGroupName(string $customGroupName)

No description

string
getCustomTableName()

No description

$this
setCustomTableName(string $customFieldColumnName)

No description

string
getCustomFieldColumnName()

No description

$this
setCustomFieldColumnName(string $customFieldColumnName)

No description

Details

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

Parameters

string $name
string $entity
string $dataType

in FieldSpec at line 138
mixed getDefaultValue()

Return Value

mixed

in FieldSpec at line 147
$this setDefaultValue(mixed $defaultValue)

Parameters

mixed $defaultValue

Return Value

$this

in FieldSpec at line 156
string getName()

Return Value

string

in FieldSpec at line 165
$this setName(string $name)

Parameters

string $name

Return Value

$this

in FieldSpec at line 174
string getTitle()

Return Value

string

in FieldSpec at line 183
$this setTitle(string $title)

Parameters

string $title

Return Value

$this

in FieldSpec at line 192
string getEntity()

Return Value

string

in FieldSpec at line 199
string getDescription()

Return Value

string

in FieldSpec at line 208
$this setDescription(string $description)

Parameters

string $description

Return Value

$this

in FieldSpec at line 217
bool isRequired()

Return Value

bool

in FieldSpec at line 226
$this setRequired(bool $required)

Parameters

bool $required

Return Value

$this

in FieldSpec at line 235
bool getRequiredIf()

Return Value

bool

in FieldSpec at line 244
$this setRequiredIf(bool $requiredIf)

Parameters

bool $requiredIf

Return Value

$this

in FieldSpec at line 253
string getDataType()

Return Value

string

at line 64
$this setDataType($dataType)

Parameters

$dataType

Return Value

$this

in FieldSpec at line 280
int getSerialize()

Return Value

int

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

Parameters

int|null $serialize

Return Value

$this

in FieldSpec at line 298
$this setPermission(array $permission)

Parameters

array $permission

Return Value

$this

in FieldSpec at line 306
array getPermission()

Return Value

array

in FieldSpec at line 313
string getInputType()

Return Value

string

in FieldSpec at line 321
$this setInputType(string $inputType)

Parameters

string $inputType

Return Value

$this

in FieldSpec at line 330
array getInputAttrs()

Return Value

array

in FieldSpec at line 338
$this setInputAttrs(array $inputAttrs)

Parameters

array $inputAttrs

Return Value

$this

in FieldSpec at line 359
array getOptions()

Return Value

array

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

Parameters

array|bool $options

Return Value

$this

in FieldSpec at line 393
string getFkEntity()

Return Value

string

in FieldSpec at line 402
$this setFkEntity(string $fkEntity)

Parameters

string $fkEntity

Return Value

$this

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

Parameters

array $values

Return Value

array

at line 84
int getCustomFieldId()

Return Value

int

at line 93
$this setCustomFieldId(int $customFieldId)

Parameters

int $customFieldId

Return Value

$this

at line 102
int getCustomGroupName()

Return Value

int

at line 111
$this setCustomGroupName(string $customGroupName)

Parameters

string $customGroupName

Return Value

$this

at line 120
string getCustomTableName()

Return Value

string

at line 129
$this setCustomTableName(string $customFieldColumnName)

Parameters

string $customFieldColumnName

Return Value

$this

at line 138
string getCustomFieldColumnName()

Return Value

string

at line 147
$this setCustomFieldColumnName(string $customFieldColumnName)

Parameters

string $customFieldColumnName

Return Value

$this