Beta version

class NodesSources extends AbstractEntity

NodesSources store Node content according to a translation and a NodeType.

Methods

int
getId()

Get entity unique identifier.

setId(int $id)

No description

getNode()

No description

$this
setNode(Node $node = null)

No description

preUpdate()

No description

getTranslation()

No description

$this
setTranslation(Translation $translation)

No description

ArrayCollection
getUrlAliases()

No description

$this
addUrlAlias(UrlAlias $urlAlias)

No description

ArrayCollection
getDocumentsByFields()

No description

ArrayCollection
getLogs()

Logs related to this node-source.

$this
setLogs(ArrayCollection|array $logs)

No description

string
getTitle()

No description

$this
setTitle(string $title)

No description

DateTime|null
getPublishedAt()

No description

setPublishedAt(DateTime $publishedAt = null)

No description

string
getMetaTitle()

No description

$this
setMetaTitle(string $metaTitle)

No description

string
getMetaKeywords()

No description

$this
setMetaKeywords(string $metaKeywords)

No description

string
getMetaDescription()

No description

$this
setMetaDescription(String $metaDescription)

No description

getHandler()

No description

__construct(Node $node, Translation $translation)

Create a new NodeSource with its Node and Translation.

string
__toString()

No description

__clone()

Before clone method.

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

at line 63
Node getNode()

Return Value

Node

at line 73
$this setNode(Node $node = null)

Parameters

Node $node

Return Value

$this

at line 86
preUpdate()

at line 101
Translation getTranslation()

Return Value

Translation

at line 110
$this setTranslation(Translation $translation)

Parameters

Translation $translation

Return Value

$this

at line 124
ArrayCollection getUrlAliases()

Return Value

ArrayCollection

at line 133
$this addUrlAlias(UrlAlias $urlAlias)

Parameters

UrlAlias $urlAlias

Return Value

$this

at line 151
ArrayCollection getDocumentsByFields()

Return Value

ArrayCollection

at line 167
ArrayCollection getLogs()

Logs related to this node-source.

Return Value

ArrayCollection

at line 176
$this setLogs(ArrayCollection|array $logs)

Parameters

ArrayCollection|array $logs

Return Value

$this

at line 191
string getTitle()

Return Value

string

at line 201
$this setTitle(string $title)

Parameters

string $title

Return Value

$this

at line 217
DateTime|null getPublishedAt()

Return Value

DateTime|null

at line 226
NodesSources setPublishedAt(DateTime $publishedAt = null)

Parameters

DateTime $publishedAt

Return Value

NodesSources

at line 240
string getMetaTitle()

Return Value

string

at line 250
$this setMetaTitle(string $metaTitle)

Parameters

string $metaTitle

Return Value

$this

at line 264
string getMetaKeywords()

Return Value

string

at line 274
$this setMetaKeywords(string $metaKeywords)

Parameters

string $metaKeywords

Return Value

$this

at line 288
string getMetaDescription()

Return Value

string

at line 298
$this setMetaDescription(String $metaDescription)

Parameters

String $metaDescription

Return Value

$this

at line 308
NodesSourcesHandler getHandler()

Return Value

NodesSourcesHandler

at line 322
__construct(Node $node, Translation $translation)

Create a new NodeSource with its Node and Translation.

Parameters

Node $node
Translation $translation

at line 334
string __toString()

Return Value

string

at line 348
__clone()

Before clone method.

Be carful not to persist nor flush current entity after calling clone as it empties its relations.