class NodeType extends AbstractEntity (View source)

NodeTypes describe each node structure family, They are mandatory before creating any Node.

Properties

protected $id from AbstractEntity
protected $color

Methods

int
getId()

No description

setId(int $id)

No description

string
getName()

No description

$this
setName(string $name)

No description

string
getDisplayName()

No description

$this
setDisplayName(string $displayName)

No description

string
getDescription()

No description

$this
setDescription(string $description)

No description

boolean
isVisible()

No description

$this
setVisible(boolean $visible)

No description

bool
isPublishable()

No description

setPublishable(bool $publishable)

No description

bool
getReachable()

No description

bool
isReachable()

No description

setReachable(bool $reachable)

No description

boolean
isNewsletterType()

No description

$this
setNewsletterType(boolean $newsletterType)

No description

boolean
isHidingNodes()

No description

$this
setHidingNodes(boolean $hidingNodes)

No description

string
getColor()

Gets the value of color.

$this
setColor(string $color)

Sets the value of color.

ArrayCollection
getFields()

No description

array
getFieldsNames()

Get every node-type fields names in a simple array.

addField(NodeTypeField $field)

No description

removeField(NodeTypeField $field)

No description

__construct()

Create a new NodeType.

string
getSourceEntityClassName()

Get node-source entity class name without its namespace.

string
getSourceEntityTableName()

Get node-source entity database table name.

static string
string
__toString()

No description

ArrayCollection
getSearchableFields()

Get every searchable node-type fields as a Doctrine ArrayCollection.

getHandler()

No description

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

string getName()

Return Value

string

$this setName(string $name)

Parameters

string $name

Return Value

$this

string getDisplayName()

Return Value

string

$this setDisplayName(string $displayName)

Parameters

string $displayName

Return Value

$this

string getDescription()

Return Value

string

$this setDescription(string $description)

Parameters

string $description

Return Value

$this

boolean isVisible()

Return Value

boolean

$this setVisible(boolean $visible)

Parameters

boolean $visible

Return Value

$this

bool isPublishable()

Return Value

bool

NodeType setPublishable(bool $publishable)

Parameters

bool $publishable

Return Value

NodeType

bool getReachable()

Return Value

bool

bool isReachable()

Return Value

bool

NodeType setReachable(bool $reachable)

Parameters

bool $reachable

Return Value

NodeType

boolean isNewsletterType()

Return Value

boolean

$this setNewsletterType(boolean $newsletterType)

Parameters

boolean $newsletterType

Return Value

$this

boolean isHidingNodes()

Return Value

boolean

$this setHidingNodes(boolean $hidingNodes)

Parameters

boolean $hidingNodes

Return Value

$this

string getColor()

Gets the value of color.

Return Value

string

$this setColor(string $color)

Sets the value of color.

Parameters

string $color

Return Value

$this

ArrayCollection getFields()

Return Value

ArrayCollection

array getFieldsNames()

Get every node-type fields names in a simple array.

Return Value

array

NodeType addField(NodeTypeField $field)

Parameters

NodeTypeField $field

Return Value

NodeType

NodeType removeField(NodeTypeField $field)

Parameters

NodeTypeField $field

Return Value

NodeType

__construct()

Create a new NodeType.

string getSourceEntityClassName()

Get node-source entity class name without its namespace.

Return Value

string

string getSourceEntityTableName()

Get node-source entity database table name.

Return Value

string

static string getGeneratedEntitiesNamespace()

Return Value

string

string __toString()

Return Value

string

ArrayCollection getSearchableFields()

Get every searchable node-type fields as a Doctrine ArrayCollection.

Return Value

ArrayCollection

NodeTypeHandler getHandler()

Return Value

NodeTypeHandler