PHP 클래스 Newscoop\Entity\Snippet

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

보호된 프로퍼티들

프로퍼티 타입 설명
$articles Newscoop\Entity\Article
$created string
$enabled boolean
$fields Doctrine\Common\Collections\ArrayCollection
$id integer
$modified string
$name string
$template Newscoop\Entity\Snippet\SnippetTemplate

공개 메소드들

메소드 설명
__construct ( SnippetTemplate $template ) Constructs the Snippet
addArticle ( Article $article ) : Newscoop\Entity\Snippet Add an Article to the Snippet
getArticles ( ) : ArrayCollection Return the attached Articles
getCreated ( ) : DateTime Getter for created
getEnabled ( ) : mixed Getter for enabled
getFields ( ) : ArrayCollection Getter for fields
getFieldsWithoutBackend ( ) : ArrayCollection Getter for fields without the Backend scope
getId ( ) : integer Getter for id
getModified ( ) : mixed Getter for modified
getName ( ) : string Getter for Name
getTemplate ( ) : SnippetTemplate Getter for Template
getTemplateId ( ) : integer Returns the Template id
getTemplateName ( ) : string Returns the Template Name
hasName ( ) : boolean Check if Snippet has a name
removeArticle ( Article $article ) : Newscoop\Entity\Snippet Remove an Article from the Snippet
render ( ) : string Renders the Snippet with the Data into the Template
setCreated ( DateTime $created = null ) : Newscoop\Entity\Snippet Setter for created
setData ( string $fieldName, string $fieldData = null ) : Newscoop\Entity\Snippet Set Snippet Data to the appropriate fields
setEnabled ( mixed $enabled ) : self Setter for enabled
setId ( integer $id ) : Newscoop\Entity\Snippet Setter for id
setModified ( mixed $modified = null ) : self Setter for modified
setName ( string $name ) : Newscoop\Entity\Snippet Setter for Name
setTemplate ( SnippetTemplate $template ) : Newscoop\Entity\Snippet Setter for Template

비공개 메소드들

메소드 설명
addField ( SnippetField $field ) : Newscoop\Entity\Snippet Add Snippet fields

메소드 상세

__construct() 공개 메소드

Constructs the Snippet
public __construct ( SnippetTemplate $template )
$template Newscoop\Entity\Snippet\SnippetTemplate SnippetTemplate to set for this Snippet

addArticle() 공개 메소드

Add an Article to the Snippet
public addArticle ( Article $article ) : Newscoop\Entity\Snippet
$article Article the Article to attach
리턴 Newscoop\Entity\Snippet

getArticles() 공개 메소드

Return the attached Articles
public getArticles ( ) : ArrayCollection
리턴 Doctrine\Common\Collections\ArrayCollection

getCreated() 공개 메소드

Getter for created
public getCreated ( ) : DateTime
리턴 DateTime

getEnabled() 공개 메소드

Getter for enabled
public getEnabled ( ) : mixed
리턴 mixed

getFields() 공개 메소드

Getter for fields
public getFields ( ) : ArrayCollection
리턴 Doctrine\Common\Collections\ArrayCollection

getFieldsWithoutBackend() 공개 메소드

Getter for fields without the Backend scope
public getFieldsWithoutBackend ( ) : ArrayCollection
리턴 Doctrine\Common\Collections\ArrayCollection

getId() 공개 메소드

Getter for id
public getId ( ) : integer
리턴 integer

getModified() 공개 메소드

Getter for modified
public getModified ( ) : mixed
리턴 mixed

getName() 공개 메소드

Getter for Name
public getName ( ) : string
리턴 string

getTemplate() 공개 메소드

Getter for Template
public getTemplate ( ) : SnippetTemplate
리턴 Newscoop\Entity\Snippet\SnippetTemplate

getTemplateId() 공개 메소드

Returns the Template id
public getTemplateId ( ) : integer
리턴 integer template id

getTemplateName() 공개 메소드

Returns the Template Name
public getTemplateName ( ) : string
리턴 string template name

hasName() 공개 메소드

Check if Snippet has a name
public hasName ( ) : boolean
리턴 boolean

removeArticle() 공개 메소드

Remove an Article from the Snippet
public removeArticle ( Article $article ) : Newscoop\Entity\Snippet
$article Article the Article to remove
리턴 Newscoop\Entity\Snippet

render() 공개 메소드

Renders the Snippet with the Data into the Template
public render ( ) : string
리턴 string rendered Snippet

setCreated() 공개 메소드

Setter for created
public setCreated ( DateTime $created = null ) : Newscoop\Entity\Snippet
$created DateTime Value to set
리턴 Newscoop\Entity\Snippet

setData() 공개 메소드

Set Snippet Data to the appropriate fields
public setData ( string $fieldName, string $fieldData = null ) : Newscoop\Entity\Snippet
$fieldName string the name of the SnippetField
$fieldData string the data of the SnippetField
리턴 Newscoop\Entity\Snippet

setEnabled() 공개 메소드

Setter for enabled
public setEnabled ( mixed $enabled ) : self
$enabled mixed Value to set
리턴 self

setId() 공개 메소드

Setter for id
public setId ( integer $id ) : Newscoop\Entity\Snippet
$id integer
리턴 Newscoop\Entity\Snippet

setModified() 공개 메소드

Setter for modified
public setModified ( mixed $modified = null ) : self
$modified mixed Value to set
리턴 self

setName() 공개 메소드

Setter for Name
public setName ( string $name ) : Newscoop\Entity\Snippet
$name string
리턴 Newscoop\Entity\Snippet

setTemplate() 공개 메소드

Setter for Template
public setTemplate ( SnippetTemplate $template ) : Newscoop\Entity\Snippet
$template Newscoop\Entity\Snippet\SnippetTemplate
리턴 Newscoop\Entity\Snippet

프로퍼티 상세

$articles 보호되어 있는 프로퍼티

protected Newscoop\Entity\Article $articles
리턴 Newscoop\Entity\Article

$created 보호되어 있는 프로퍼티

protected string $created
리턴 string

$enabled 보호되어 있는 프로퍼티

protected bool $enabled
리턴 boolean

$fields 보호되어 있는 프로퍼티

protected ArrayCollection,Doctrine\Common\Collections $fields
리턴 Doctrine\Common\Collections\ArrayCollection

$id 보호되어 있는 프로퍼티

protected int $id
리턴 integer

$modified 보호되어 있는 프로퍼티

protected string $modified
리턴 string

$name 보호되어 있는 프로퍼티

protected string $name
리턴 string

$template 보호되어 있는 프로퍼티

protected SnippetTemplate,Newscoop\Entity\Snippet $template
리턴 Newscoop\Entity\Snippet\SnippetTemplate