PHP Class Newscoop\NewscoopBundle\Entity\Topic

Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Méthodes publiques

Свойство Type Description
$locale

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

public __construct ( )

__toString() public méthode

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

addArticleTopic() public méthode

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

addTranslation() public méthode

Adds the translation.
public addTranslation ( TopicTranslation $translation ) : self
$translation TopicTranslation
Résultat self

getChildren() public méthode

Gets the value of children.
public getChildren ( ) : mixed
Résultat mixed

getCreated() public méthode

Gets the value of created.
public getCreated ( ) : mixed
Résultat mixed

getDescription() public méthode

Gets the value of description.
public getDescription ( ) : mixed
Résultat mixed

getId() public méthode

Gets the value of id.
public getId ( ) : mixed
Résultat mixed

getLeft() public méthode

Gets the value of lft.
public getLeft ( ) : mixed
Résultat mixed

getLevel() public méthode

Gets the value of level.
public getLevel ( ) : mixed
Résultat mixed

getName() public méthode

Gets the value of title.
public getName ( ) : mixed
Résultat mixed

getObject() public méthode

Gets object.
public getObject ( ) : Topic
Résultat Topic

getOrder() public méthode

Gets the value of topic order.
public getOrder ( ) : integer
Résultat integer

getParent() public méthode

Gets the value of parent.
public getParent ( ) : mixed
Résultat mixed

getParentAsInteger() public méthode

Gets the integer value of parent.
public getParentAsInteger ( ) : integer
Résultat integer

getRight() public méthode

Gets the value of rgt.
public getRight ( ) : mixed
Résultat mixed

getRoot() public méthode

Gets the value of root.
public getRoot ( ) : mixed
Résultat mixed

getTitle() public méthode

Gets the value of title.
public getTitle ( ) : mixed
Résultat mixed

getTopicId() public méthode

Gets the value of id.
public getTopicId ( ) : mixed
Résultat mixed

getTranslatableLocale() public méthode

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

getTranslation() public méthode

Gets the translation.
public getTranslation ( mixed $locale ) : mixed
$locale mixed the locale
Résultat mixed

getTranslations() public méthode

Gets the translations.
public getTranslations ( ) : mixed
Résultat mixed

getUpdated() public méthode

Gets the value of updated.
public getUpdated ( ) : mixed
Résultat mixed

getView() public méthode

Get view.
public getView ( ) : TopicView
Résultat Newscoop\View\TopicView

hasTranslation() public méthode

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

isRoot() public méthode

Checkes if topic is root.
public isRoot ( ) : boolean
Résultat boolean

removeArticleTopic() public méthode

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

setChildren() public méthode

Sets the value of children.
public setChildren ( mixed $children ) : self
$children mixed the children
Résultat self

setCreated() public méthode

Sets the value of created.
public setCreated ( mixed $created ) : self
$created mixed the created
Résultat self

setDescription() public méthode

Sets the value of description.
public setDescription ( mixed $description ) : self
$description mixed the description
Résultat self

setId() public méthode

Sets the value of id.
public setId ( mixed $id ) : self
$id mixed the id
Résultat self

setLeft() public méthode

Sets the value of lft.
public setLeft ( mixed $lft ) : self
$lft mixed the lft
Résultat self

setLevel() public méthode

Sets the value of level.
public setLevel ( mixed $level ) : self
$level mixed the level
Résultat self

setName() public méthode

Sets the value of title.
public setName ( mixed $title ) : self
$title mixed the title
Résultat self

setOrder() public méthode

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

setParent() public méthode

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

setRight() public méthode

Sets the value of rgt.
public setRight ( mixed $rgt ) : self
$rgt mixed the rgt
Résultat self

setRoot() public méthode

Sets the value of root.
public setRoot ( mixed $root ) : self
$root mixed the root
Résultat self

setTitle() public méthode

Sets the value of title.
public setTitle ( mixed $title ) : self
$title mixed the title
Résultat self

setTopicId() public méthode

Sets the value of id.
public setTopicId ( mixed $id ) : self
$id mixed the id
Résultat self

setTranslatableLocale() public méthode

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

setUpdated() public méthode

Sets the value of updated.
public setUpdated ( mixed $updated ) : self
$updated mixed the updated
Résultat self

Property Details

$articles protected_oe property

protected Article,Newscoop\Entity $articles
Résultat 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
Résultat 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
Résultat integer

$translations protected_oe property

protected $translations

$updated protected_oe property

protected $updated