Beta version

class NodeTypeField extends AbstractField

NodeTypeField entities are used to create NodeTypes 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

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

static array $typeToHuman Associates abstract field type to a readable string. from AbstractField
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

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

getNodeType()

No description

$this
setNodeType(NodeType $nodeType)

No description

int
getMinLength()

No description

$this
setMinLength($minLength)

No description

int
getMaxLength()

No description

$this
setMaxLength(int $maxLength)

No description

boolean
isIndexed()

No description

$this
setIndexed(boolean $indexed)

No description

boolean
isVisible()

No description

$this
setVisible(boolean $visible)

No description

getHandler()

No description

boolean
isSearchable()

Tell if current field can be searched and indexed in a Search engine server.

string
getOneLineSummary()

No description

mixed
getUniversal()

No description

bool
isUniversal()

No description

setUniversal(bool $universal)

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 294
string getName()

Return Value

string $name

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

Parameters

string $name

Return Value

$this

in AbstractField at line 314
string getGetterName()

Return Value

string

in AbstractField at line 322
string getSetterName()

Return Value

string

in AbstractField at line 335
string getLabel()

Return Value

string

in AbstractField at line 345
$this setLabel(string $label)

Parameters

string $label

Return Value

$this

in AbstractField at line 359
string getDescription()

Return Value

string

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

Parameters

string $description

Return Value

$this

in AbstractField at line 383
string getDefaultValues()

Return Value

string

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

Parameters

string $defaultValues

Return Value

$this

in AbstractField at line 408
integer getType()

Return Value

integer

in AbstractField at line 416
string getTypeName()

Return Value

string

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

Parameters

integer $type

Return Value

$this

in AbstractField at line 436
boolean isVirtual()

Return Value

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

in AbstractField at line 456
string getGroupName()

Gets the value of groupName.

Return Value

string

in AbstractField at line 464
mixed getGroupNameCanonical()

Return Value

mixed

in AbstractField at line 475
AbstractField setGroupName(string $groupName)

Sets the value of groupName.

Parameters

string $groupName the group name

Return Value

AbstractField

in AbstractField at line 493
bool isExpanded()

Return Value

bool

in AbstractField at line 502
AbstractField setExpanded(bool $expanded)

Parameters

bool $expanded

Return Value

AbstractField

at line 73
NodeType getNodeType()

Return Value

NodeType

at line 83
$this setNodeType(NodeType $nodeType)

Parameters

NodeType $nodeType

Return Value

$this

at line 98
int getMinLength()

Return Value

int

at line 108
$this setMinLength($minLength)

Parameters

$minLength

Return Value

$this

at line 123
int getMaxLength()

Return Value

int

at line 133
$this setMaxLength(int $maxLength)

Parameters

int $maxLength

Return Value

$this

at line 148
boolean isIndexed()

Return Value

boolean $isIndexed

at line 158
$this setIndexed(boolean $indexed)

Parameters

boolean $indexed

Return Value

$this

at line 173
boolean isVisible()

Return Value

boolean $isVisible

at line 183
$this setVisible(boolean $visible)

Parameters

boolean $visible

Return Value

$this

at line 193
NodeTypeFieldHandler getHandler()

Return Value

NodeTypeFieldHandler

at line 203
boolean isSearchable()

Tell if current field can be searched and indexed in a Search engine server.

Return Value

boolean

at line 211
string getOneLineSummary()

Return Value

string

at line 223
mixed getUniversal()

Return Value

mixed

See also

Same as isUniversal

at line 231
bool isUniversal()

Return Value

bool

at line 240
NodeTypeField setUniversal(bool $universal)

Parameters

bool $universal

Return Value

NodeTypeField