Beta version

class CustomFormField extends AbstractField

CustomFormField entities are used to create CustomForms with custom data structure.

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 custom form field type to a readable string.
static array $typeToDoctrine Associates abstract field type to a Doctrine type. from AbstractField
static array $typeToForm Associates abstract field type to a Symfony Form type. from AbstractField

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

getCustomForm()

No description

$this
setCustomForm(CustomForm $customForm)

No description

getCustomFormFieldAttribute()

No description

__contruct()

No description

boolean
isRequired()

No description

$this
setRequired(boolean $required)

No description

prePersist()

No description

string
getOneLineSummary()

No description

__clone()

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

in AbstractField at line 279
string getName()

Return Value

string $name

in AbstractField at line 289
$this setName(string $name)

Parameters

string $name

Return Value

$this

in AbstractField at line 299
string getGetterName()

Return Value

string

in AbstractField at line 307
string getSetterName()

Return Value

string

in AbstractField at line 320
string getLabel()

Return Value

string

at line 75
$this setLabel(string $label)

Parameters

string $label

Return Value

$this

in AbstractField at line 344
string getDescription()

Return Value

string

in AbstractField at line 354
$this setDescription(string $description)

Parameters

string $description

Return Value

$this

in AbstractField at line 368
string getDefaultValues()

Return Value

string

in AbstractField at line 378
$this setDefaultValues(string $defaultValues)

Parameters

string $defaultValues

Return Value

$this

in AbstractField at line 393
integer getType()

Return Value

integer

in AbstractField at line 401
string getTypeName()

Return Value

string

in AbstractField at line 411
$this setType(integer $type)

Parameters

integer $type

Return Value

$this

in AbstractField at line 421
boolean isVirtual()

Return Value

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

at line 92
CustomForm getCustomForm()

Return Value

CustomForm

at line 102
$this setCustomForm(CustomForm $customForm)

Parameters

CustomForm $customForm

Return Value

$this

at line 114
getCustomFormFieldAttribute()

at line 119
__contruct()

at line 132
boolean isRequired()

Return Value

boolean $isRequired

at line 142
$this setRequired(boolean $required)

Parameters

boolean $required

Return Value

$this

at line 152
CustomFormFieldHandler getHandler()

Return Value

CustomFormFieldHandler

at line 160
prePersist()

at line 171
string getOneLineSummary()

Return Value

string

at line 176
__clone()