Beta version

abstract class AbstractField extends AbstractEntity

Traits

Trait which describe a positioned entity

Constants

STRING_T

String field is a simple 255 characters long text.

DATETIME_T

DateTime field is a combined Date and Time.

TEXT_T

Text field is a 65000 characters long text.

RICHTEXT_T

Richtext field is an HTML text using a WYSIWYG editor.

Use Markdown type instead. WYSIWYG is evil.

MARKDOWN_T

Markdown field is a pseudo-coded text which is render with a simple editor.

BOOLEAN_T

Boolean field is a simple switch between 0 and 1.

INTEGER_T

Integer field is a non-floating number.

DECIMAL_T

Decimal field is a floating number.

EMAIL_T

Email field is a short text which must comply with email rules.

DOCUMENTS_T

Documents field helps linking NodesSources with Documents.

PASSWORD_T

Password field is a simple text data rendered as a password input with a confirmation.

COLOUR_T

Colour field is an hexadecimal string which is rendered with a colour chooser.

GEOTAG_T

Geotag field is a Map widget which stores a Latitude and Longitude as an array.

NODES_T

Nodes field helps linking Nodes with other Nodes entities.

USER_T

Nodes field helps linking NodesSources with Users entities.

ENUM_T

Enum field is a simple select box with default values.

CHILDREN_T

Children field is a virtual field, it will only display a NodeTreeWidget to show current Node children.

CUSTOM_FORMS_T

Nodes field helps linking Nodes with CustomForms entities.

MULTIPLE_T

Multiple field is a simple select box with multiple choices.

RADIO_GROUP_T

Radio group field is like ENUM_T but rendered as a radio button group.

CHECK_GROUP_T

Check group field is like MULTIPLE_T but rendered as a checkbox group.

MULTI_GEOTAG_T

Multi-Geotag field is a Map widget which stores multiple Latitude and Longitude with names and icon options.

DATE_T

JSON_T

Textarea to write Json syntaxed code

CSS_T

Textarea to write CSS syntaxed code

COUNTRY_T

Selectbox to choose ISO Country

YAML_T

Textarea to write YAML syntaxed text

Properties

static array $typeToHuman Associates abstract field type to a readable string.
static array $typeToDoctrine Associates abstract field type to a Doctrine type.
static array $typeToForm Associates abstract field type to a Symfony Form type.

Methods

int
getId()

Get entity unique identifier.

setId(int $id)

No description

float
getPosition()

No description

$this
setPosition(float $newPosition)

Set position as a float to enable increment and decrement by O.5 to insert a node between two others.

string
getName()

No description

$this
setName(string $name)

No description

string
getGetterName()

No description

string
getSetterName()

No description

string
getLabel()

No description

$this
setLabel(string $label)

No description

string
getDescription()

No description

$this
setDescription(string $description)

No description

string
getDefaultValues()

No description

$this
setDefaultValues(string $defaultValues)

No description

integer
getType()

No description

string
getTypeName()

No description

$this
setType(integer $type)

No description

boolean
isVirtual()

No description

Details

in AbstractEntity at line 51
int getId()

Get entity unique identifier.

Return Value

int

in AbstractEntity at line 60
AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

in PositionedTrait at line 45
float getPosition()

Return Value

float

in PositionedTrait at line 58
$this setPosition(float $newPosition)

Set position as a float to enable increment and decrement by O.5 to insert a node between two others.

Parameters

float $newPosition

Return Value

$this

at line 279
string getName()

Return Value

string $name

at line 289
$this setName(string $name)

Parameters

string $name

Return Value

$this

at line 299
string getGetterName()

Return Value

string

at line 307
string getSetterName()

Return Value

string

at line 320
string getLabel()

Return Value

string

at line 330
$this setLabel(string $label)

Parameters

string $label

Return Value

$this

at line 344
string getDescription()

Return Value

string

at line 354
$this setDescription(string $description)

Parameters

string $description

Return Value

$this

at line 368
string getDefaultValues()

Return Value

string

at line 378
$this setDefaultValues(string $defaultValues)

Parameters

string $defaultValues

Return Value

$this

at line 393
integer getType()

Return Value

integer

at line 401
string getTypeName()

Return Value

string

at line 411
$this setType(integer $type)

Parameters

integer $type

Return Value

$this

at line 421
boolean isVirtual()

Return Value

boolean Is node type field virtual, it's just an association, no doctrine field created