class NodesSources extends AbstractEntity (View source)

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

Properties

protected $id from AbstractEntity
protected $logs
protected $title
protected DateTime $publishedAt
protected $metaTitle
protected $metaKeywords
protected $metaDescription

Methods

int
getId()

No description

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()

After clone method.

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

Node getNode()

Return Value

Node

$this setNode(Node $node = null)

Parameters

Node $node

Return Value

$this

preUpdate()

Translation getTranslation()

Return Value

Translation

$this setTranslation(Translation $translation)

Parameters

Translation $translation

Return Value

$this

ArrayCollection getUrlAliases()

Return Value

ArrayCollection

$this addUrlAlias(UrlAlias $urlAlias)

Parameters

UrlAlias $urlAlias

Return Value

$this

ArrayCollection getDocumentsByFields()

Return Value

ArrayCollection

ArrayCollection getLogs()

Logs related to this node-source.

Return Value

ArrayCollection

$this setLogs(ArrayCollection|array $logs)

Parameters

ArrayCollection|array $logs

Return Value

$this

string getTitle()

Return Value

string

$this setTitle(string $title)

Parameters

string $title

Return Value

$this

DateTime|null getPublishedAt()

Return Value

DateTime|null

NodesSources setPublishedAt(DateTime $publishedAt = null)

Parameters

DateTime $publishedAt

Return Value

NodesSources

string getMetaTitle()

Return Value

string

$this setMetaTitle(string $metaTitle)

Parameters

string $metaTitle

Return Value

$this

string getMetaKeywords()

Return Value

string

$this setMetaKeywords(string $metaKeywords)

Parameters

string $metaKeywords

Return Value

$this

string getMetaDescription()

Return Value

string

$this setMetaDescription(String $metaDescription)

Parameters

String $metaDescription

Return Value

$this

NodesSourcesHandler getHandler()

Return Value

NodesSourcesHandler

__construct(Node $node, Translation $translation)

Create a new NodeSource with its Node and Translation.

Parameters

Node $node
Translation $translation

string __toString()

Return Value

string

__clone()

After clone method.

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