NodeInterface

interface NodeInterface

Nodes are the main structure that holds contents within Arcella, they consist of an numeric Id, a title and an array containing the contents, where “text” is the default content. Also there are timestamps from the creation and the last update included.

@package ArcellaDomain

getId()

Returns the Id of the node.

@return integer Id of the node.

getTitle()

Returns the Title of the node.

@return string Title of the node.

setTitle(string $title)

Updates the Title of the node and returns the changed node with the new title.

@param string $title The new title for the node.

@return mixed The node with the new title.

getSlug()

Returns the Slug of the node.

@return string Slug of the node.

setSlug(string $slug)

Updates the Slug of the node and returns the changed node with the new slug.

@param string $slug The new slug for the node.

@return mixed The node with the new slug.

getContent()

Returns the Content of the node.

@return array All the contents inside a associated array, with “text” as default.

setConcent(array $content)

Sets Content of the node.

@param array $content The new content for the node.

@return mixed The node with the new content.

getCreated()

Returns the timestamp of the creation of the node.

@return integer Timestamp of the nodes creation.

getUpdated()

Returns the timestamp of the last update of the node.

@return integer Timestamp of the nodes last update.