PHP Класс Newscoop\NewscoopBundle\Entity\Topic

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$locale

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

public __construct ( )

__toString() публичный метод

Returns topic's title when echo this object.
public __toString ( ) : string
Результат string

addArticleTopic() публичный метод

Adds Topic to Article.
public addArticleTopic ( Article $article ) : Topic
$article Newscoop\Entity\Article the Article to attach
Результат Topic

addTranslation() публичный метод

Adds the translation.
public addTranslation ( TopicTranslation $translation ) : self
$translation TopicTranslation
Результат self

getChildren() публичный метод

Gets the value of children.
public getChildren ( ) : mixed
Результат mixed

getCreated() публичный метод

Gets the value of created.
public getCreated ( ) : mixed
Результат mixed

getDescription() публичный метод

Gets the value of description.
public getDescription ( ) : mixed
Результат mixed

getId() публичный метод

Gets the value of id.
public getId ( ) : mixed
Результат mixed

getLeft() публичный метод

Gets the value of lft.
public getLeft ( ) : mixed
Результат mixed

getLevel() публичный метод

Gets the value of level.
public getLevel ( ) : mixed
Результат mixed

getName() публичный метод

Gets the value of title.
public getName ( ) : mixed
Результат mixed

getObject() публичный метод

Gets object.
public getObject ( ) : Topic
Результат Topic

getOrder() публичный метод

Gets the value of topic order.
public getOrder ( ) : integer
Результат integer

getParent() публичный метод

Gets the value of parent.
public getParent ( ) : mixed
Результат mixed

getParentAsInteger() публичный метод

Gets the integer value of parent.
public getParentAsInteger ( ) : integer
Результат integer

getRight() публичный метод

Gets the value of rgt.
public getRight ( ) : mixed
Результат mixed

getRoot() публичный метод

Gets the value of root.
public getRoot ( ) : mixed
Результат mixed

getTitle() публичный метод

Gets the value of title.
public getTitle ( ) : mixed
Результат mixed

getTopicId() публичный метод

Gets the value of id.
public getTopicId ( ) : mixed
Результат mixed

getTranslatableLocale() публичный метод

Gets the Used locale to override Translation listener`s locale.
public getTranslatableLocale ( ) : mixed
Результат mixed

getTranslation() публичный метод

Gets the translation.
public getTranslation ( mixed $locale ) : mixed
$locale mixed the locale
Результат mixed

getTranslations() публичный метод

Gets the translations.
public getTranslations ( ) : mixed
Результат mixed

getUpdated() публичный метод

Gets the value of updated.
public getUpdated ( ) : mixed
Результат mixed

getView() публичный метод

Get view.
public getView ( ) : TopicView
Результат Newscoop\View\TopicView

hasTranslation() публичный метод

Checks if there is translation.
public hasTranslation ( mixed $locale ) : self
$locale mixed the locale
Результат self

isRoot() публичный метод

Checkes if topic is root.
public isRoot ( ) : boolean
Результат boolean

removeArticleTopic() публичный метод

Removes Topic from Article.
public removeArticleTopic ( Article $article ) : Topic
$article Newscoop\Entity\Article the Article to deattach topic
Результат Topic

setChildren() публичный метод

Sets the value of children.
public setChildren ( mixed $children ) : self
$children mixed the children
Результат self

setCreated() публичный метод

Sets the value of created.
public setCreated ( mixed $created ) : self
$created mixed the created
Результат self

setDescription() публичный метод

Sets the value of description.
public setDescription ( mixed $description ) : self
$description mixed the description
Результат self

setId() публичный метод

Sets the value of id.
public setId ( mixed $id ) : self
$id mixed the id
Результат self

setLeft() публичный метод

Sets the value of lft.
public setLeft ( mixed $lft ) : self
$lft mixed the lft
Результат self

setLevel() публичный метод

Sets the value of level.
public setLevel ( mixed $level ) : self
$level mixed the level
Результат self

setName() публичный метод

Sets the value of title.
public setName ( mixed $title ) : self
$title mixed the title
Результат self

setOrder() публичный метод

Sets the value of topic order.
public setOrder ( $topicOrder = null ) : self
Результат self

setParent() публичный метод

Sets the value of parent.
public setParent ( mixed $parent = null ) : self
$parent mixed the parent
Результат self

setRight() публичный метод

Sets the value of rgt.
public setRight ( mixed $rgt ) : self
$rgt mixed the rgt
Результат self

setRoot() публичный метод

Sets the value of root.
public setRoot ( mixed $root ) : self
$root mixed the root
Результат self

setTitle() публичный метод

Sets the value of title.
public setTitle ( mixed $title ) : self
$title mixed the title
Результат self

setTopicId() публичный метод

Sets the value of id.
public setTopicId ( mixed $id ) : self
$id mixed the id
Результат self

setTranslatableLocale() публичный метод

Sets the Used locale to override Translation listener`s locale.
public setTranslatableLocale ( mixed $locale ) : self
$locale mixed the locale
Результат self

setUpdated() публичный метод

Sets the value of updated.
public setUpdated ( mixed $updated ) : self
$updated mixed the updated
Результат self

Описание свойств

$articles защищенное свойство

protected Article,Newscoop\Entity $articles
Результат Newscoop\Entity\Article

$children защищенное свойство

protected $children

$created защищенное свойство

protected $created

$description защищенное свойство

protected $description

$id защищенное свойство

protected $id

$level защищенное свойство

protected $level

$lft защищенное свойство

protected $lft

$locale публичное свойство

public $locale

$parent защищенное свойство

protected $parent

$parentId защищенное свойство

protected int $parentId
Результат integer

$rgt защищенное свойство

protected $rgt

$root защищенное свойство

protected $root

$title защищенное свойство

protected $title

$topicOrder защищенное свойство

protected int $topicOrder
Результат integer

$translations защищенное свойство

protected $translations

$updated защищенное свойство

protected $updated