PHP 클래스 Newscoop\NewscoopBundle\Entity\Topic

파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$locale

보호된 프로퍼티들

프로퍼티 타입 설명
$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