PHP Class Newscoop\NewscoopBundle\Entity\Topic

Datei anzeigen Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$locale

Protected Properties

Property Type Description
$articles Newscoop\Entity\Article
$articlesLink string Link to topic articles resource.
$children
$created
$description
$id
$level
$lft
$parent
$parentId integer
$rgt
$root
$title
$topicOrder integer
$translations
$updated

Public Methods

Method Description
__construct ( )
__toString ( ) : string Returns topic's title when echo this object.
addArticleTopic ( Article $article ) : Topic Adds Topic to Article.
addTranslation ( TopicTranslation $translation ) : self Adds the translation.
getArticlesLink ( ) : string Get link to topic articles resource.
getChildren ( ) : mixed Gets the value of children.
getCreated ( ) : mixed Gets the value of created.
getDescription ( ) : mixed Gets the value of description.
getId ( ) : mixed Gets the value of id.
getLeft ( ) : mixed Gets the value of lft.
getLevel ( ) : mixed Gets the value of level.
getName ( ) : mixed Gets the value of title.
getObject ( ) : Topic Gets object.
getOrder ( ) : integer Gets the value of topic order.
getParent ( ) : mixed Gets the value of parent.
getParentAsInteger ( ) : integer Gets the integer value of parent.
getRight ( ) : mixed Gets the value of rgt.
getRoot ( ) : mixed Gets the value of root.
getTitle ( ) : mixed Gets the value of title.
getTopicId ( ) : mixed Gets the value of id.
getTranslatableLocale ( ) : mixed Gets the Used locale to override Translation listener`s locale.
getTranslation ( mixed $locale ) : mixed Gets the translation.
getTranslations ( ) : mixed Gets the translations.
getUpdated ( ) : mixed Gets the value of updated.
getView ( ) : TopicView Get view.
hasTranslation ( mixed $locale ) : self Checks if there is translation.
isRoot ( ) : boolean Checkes if topic is root.
removeArticleTopic ( Article $article ) : Topic Removes Topic from Article.
setArticlesLink ( string $articlesLink ) Set link to topic articles resource.
setChildren ( mixed $children ) : self Sets the value of children.
setCreated ( mixed $created ) : self Sets the value of created.
setDescription ( mixed $description ) : self Sets the value of description.
setId ( mixed $id ) : self Sets the value of id.
setLeft ( mixed $lft ) : self Sets the value of lft.
setLevel ( mixed $level ) : self Sets the value of level.
setName ( mixed $title ) : self Sets the value of title.
setOrder ( $topicOrder = null ) : self Sets the value of topic order.
setParent ( mixed $parent = null ) : self Sets the value of parent.
setRight ( mixed $rgt ) : self Sets the value of rgt.
setRoot ( mixed $root ) : self Sets the value of root.
setTitle ( mixed $title ) : self Sets the value of title.
setTopicId ( mixed $id ) : self Sets the value of id.
setTranslatableLocale ( mixed $locale ) : self Sets the Used locale to override Translation listener`s locale.
setUpdated ( mixed $updated ) : self Sets the value of updated.

Method Details

__construct() public method

public __construct ( )

__toString() public method

Returns topic's title when echo this object.
public __toString ( ) : string
return string

addArticleTopic() public method

Adds Topic to Article.
public addArticleTopic ( Article $article ) : Topic
$article Newscoop\Entity\Article the Article to attach
return Topic

addTranslation() public method

Adds the translation.
public addTranslation ( TopicTranslation $translation ) : self
$translation TopicTranslation
return self

getChildren() public method

Gets the value of children.
public getChildren ( ) : mixed
return mixed

getCreated() public method

Gets the value of created.
public getCreated ( ) : mixed
return mixed

getDescription() public method

Gets the value of description.
public getDescription ( ) : mixed
return mixed

getId() public method

Gets the value of id.
public getId ( ) : mixed
return mixed

getLeft() public method

Gets the value of lft.
public getLeft ( ) : mixed
return mixed

getLevel() public method

Gets the value of level.
public getLevel ( ) : mixed
return mixed

getName() public method

Gets the value of title.
public getName ( ) : mixed
return mixed

getObject() public method

Gets object.
public getObject ( ) : Topic
return Topic

getOrder() public method

Gets the value of topic order.
public getOrder ( ) : integer
return integer

getParent() public method

Gets the value of parent.
public getParent ( ) : mixed
return mixed

getParentAsInteger() public method

Gets the integer value of parent.
public getParentAsInteger ( ) : integer
return integer

getRight() public method

Gets the value of rgt.
public getRight ( ) : mixed
return mixed

getRoot() public method

Gets the value of root.
public getRoot ( ) : mixed
return mixed

getTitle() public method

Gets the value of title.
public getTitle ( ) : mixed
return mixed

getTopicId() public method

Gets the value of id.
public getTopicId ( ) : mixed
return mixed

getTranslatableLocale() public method

Gets the Used locale to override Translation listener`s locale.
public getTranslatableLocale ( ) : mixed
return mixed

getTranslation() public method

Gets the translation.
public getTranslation ( mixed $locale ) : mixed
$locale mixed the locale
return mixed

getTranslations() public method

Gets the translations.
public getTranslations ( ) : mixed
return mixed

getUpdated() public method

Gets the value of updated.
public getUpdated ( ) : mixed
return mixed

getView() public method

Get view.
public getView ( ) : TopicView
return Newscoop\View\TopicView

hasTranslation() public method

Checks if there is translation.
public hasTranslation ( mixed $locale ) : self
$locale mixed the locale
return self

isRoot() public method

Checkes if topic is root.
public isRoot ( ) : boolean
return boolean

removeArticleTopic() public method

Removes Topic from Article.
public removeArticleTopic ( Article $article ) : Topic
$article Newscoop\Entity\Article the Article to deattach topic
return Topic

setChildren() public method

Sets the value of children.
public setChildren ( mixed $children ) : self
$children mixed the children
return self

setCreated() public method

Sets the value of created.
public setCreated ( mixed $created ) : self
$created mixed the created
return self

setDescription() public method

Sets the value of description.
public setDescription ( mixed $description ) : self
$description mixed the description
return self

setId() public method

Sets the value of id.
public setId ( mixed $id ) : self
$id mixed the id
return self

setLeft() public method

Sets the value of lft.
public setLeft ( mixed $lft ) : self
$lft mixed the lft
return self

setLevel() public method

Sets the value of level.
public setLevel ( mixed $level ) : self
$level mixed the level
return self

setName() public method

Sets the value of title.
public setName ( mixed $title ) : self
$title mixed the title
return self

setOrder() public method

Sets the value of topic order.
public setOrder ( $topicOrder = null ) : self
return self

setParent() public method

Sets the value of parent.
public setParent ( mixed $parent = null ) : self
$parent mixed the parent
return self

setRight() public method

Sets the value of rgt.
public setRight ( mixed $rgt ) : self
$rgt mixed the rgt
return self

setRoot() public method

Sets the value of root.
public setRoot ( mixed $root ) : self
$root mixed the root
return self

setTitle() public method

Sets the value of title.
public setTitle ( mixed $title ) : self
$title mixed the title
return self

setTopicId() public method

Sets the value of id.
public setTopicId ( mixed $id ) : self
$id mixed the id
return self

setTranslatableLocale() public method

Sets the Used locale to override Translation listener`s locale.
public setTranslatableLocale ( mixed $locale ) : self
$locale mixed the locale
return self

setUpdated() public method

Sets the value of updated.
public setUpdated ( mixed $updated ) : self
$updated mixed the updated
return self

Property Details

$articles protected_oe property

protected Article,Newscoop\Entity $articles
return Newscoop\Entity\Article

$children protected_oe property

protected $children

$created protected_oe property

protected $created

$description protected_oe property

protected $description

$id protected_oe property

protected $id

$level protected_oe property

protected $level

$lft protected_oe property

protected $lft

$locale public_oe property

public $locale

$parent protected_oe property

protected $parent

$parentId protected_oe property

protected int $parentId
return integer

$rgt protected_oe property

protected $rgt

$root protected_oe property

protected $root

$title protected_oe property

protected $title

$topicOrder protected_oe property

protected int $topicOrder
return integer

$translations protected_oe property

protected $translations

$updated protected_oe property

protected $updated