class AbstractField extends AbstractEntity (View source)

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

MANY_TO_MANY_T

«Many to many» join to a custom doctrine entity class.

MANY_TO_ONE_T

«Many to one» join to a custom doctrine entity class.

Properties

protected $id from AbstractEntity
protected $position from PositionedTrait
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.
static protected array $searchableTypes List searchable fields types in a searchEngine such as Solr.
protected $groupName
protected $groupNameCanonical

Methods

int
getId()

No description

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

string
getGroupName()

Gets the value of groupName.

mixed
getGroupNameCanonical()

No description

setGroupName(string $groupName)

Sets the value of groupName.

bool
isExpanded()

No description

setExpanded(bool $expanded)

No description

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

float getPosition()

Return Value

float

$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

string getName()

Return Value

string $name

$this setName(string $name)

Parameters

string $name

Return Value

$this

string getGetterName()

Return Value

string

string getSetterName()

Return Value

string

string getLabel()

Return Value

string

$this setLabel(string $label)

Parameters

string $label

Return Value

$this

string getDescription()

Return Value

string

$this setDescription(string $description)

Parameters

string $description

Return Value

$this

string getDefaultValues()

Return Value

string

$this setDefaultValues(string $defaultValues)

Parameters

string $defaultValues

Return Value

$this

integer getType()

Return Value

integer

string getTypeName()

Return Value

string

$this setType(integer $type)

Parameters

integer $type

Return Value

$this

boolean isVirtual()

Return Value

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

string getGroupName()

Gets the value of groupName.

Return Value

string

mixed getGroupNameCanonical()

Return Value

mixed

AbstractField setGroupName(string $groupName)

Sets the value of groupName.

Parameters

string $groupName the group name

Return Value

AbstractField

bool isExpanded()

Return Value

bool

AbstractField setExpanded(bool $expanded)

Parameters

bool $expanded

Return Value

AbstractField