Property
class Property implements PropertyInterface
Property descriptior
Constants
TEXT |
|
NUMBER |
|
CUSTOM |
|
BOOLEAN_TYPE |
|
LIST |
|
PHP_CLASS |
|
PASSWORD |
|
URL |
|
TEXT_AREA |
|
GROUP |
|
Properties
protected string | $name | Property name | |
protected string|null | $id | Property id | |
protected mixed|null | $value | Property value | |
protected array | $items | Dropdown items | |
protected string|null | $group | Group name | |
protected mixed|null | $default | Default value | |
protected string|null | $title | Property title | |
protected integer | $type | Property type | |
protected string|null | $description | Property description | |
protected boolean | $required | Property required atribute | |
protected string|null | $help | Property help | |
protected boolean | $readonly | Readonly attribute | |
$hidden | Hidden attribute | ||
protected string|null | $displayType | Display type |
Methods
Constructor
Get readonly attribute
Get readonly attribute
Return true if property is group
Get hidden attribute
Set display type
Get hidden property
Set property description
Get type id
Return property name.
Get property id.
Return property items.
Return property required attribute.
Return property group.
Return property value.
Get property default value.
Return property display name.
Get property description
Get property type
Get property type as text
Get property help
Convert to array
Set property object params
Create property obj from text
Details
at line 152
__construct(string $name, array|null $data = null)
Constructor
at line 165
bool
getReadonly()
Get readonly attribute
at line 175
bool
isReadonly()
Get readonly attribute
at line 185
bool
isGroup()
Return true if property is group
at line 195
bool
isHidden()
Get hidden attribute
at line 206
Property
value(mixed|null $value)
Set property value
at line 219
Property
items(array $items)
Set property items
at line 232
Property
type(string|integer $type)
Set property type
at line 245
Property
displayType(string|null $displayType)
Set display type
at line 257
Property
readonly(bool $readonly)
Set readonly attribute
at line 269
Property
hidden(bool $hidden)
Set hidden attribute
at line 280
bool
getHidden()
Get hidden property
at line 291
Property
title(string|null $title)
Set property title
at line 303
Property
required(bool $required)
Set property required attribute
at line 315
Property
default(mixed|null $default)
Set property default
at line 327
Property
description(string|null $description)
Set property description
at line 339
Property
help(string|null $help)
Set property help
at line 351
Property
name(string|null $name)
Set property name
at line 363
Property
id(string|null $id)
Set property id
at line 375
Property
group(string $name)
Set property group
at line 387
int|null
getTypeId(string|int $type)
Get type id
at line 398
string
getName()
Return property name.
at line 408
string|null
getId()
Get property id.
at line 418
array
getItems()
Return property items.
at line 428
bool
getRequired()
Return property required attribute.
at line 438
string|null
getGroup()
Return property group.
at line 448
mixed|null
getValue()
Return property value.
at line 458
mixed|null
getDefault()
Get property default value.
at line 468
string|null
getTitle()
Return property display name.
at line 478
string|null
getDescription()
Get property description
at line 488
int|null
getType()
Get property type
at line 498
string
getTypeText()
Get property type as text
at line 509
string|null
getHelp()
Get property help
at line 519
array
toArray()
Convert to array
at line 545
void
applyData(array $data)
Set property object params
at line 558
static Property|null
createFromText(string $text)
Create property obj from text
at line 576
static Property|null
create(array $data)
Create property obj from array