PHP Class Newscoop\Entity\ArticleType

Datei anzeigen Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$articleTypeFields Doctrine\Common\Collections\ArrayCollection (at) OneToMany( targetEntity="Newscoop\Entity\ArticleTypeField", mappedBy="articleType" )
$fieldName
$name
$phraseId integer

Public Methods

Method Description
__toString ( ) : string Used for update and stuff
getArticleTypeFields ( ) : ArrayCollection Getter for articleTypeFields
getFieldName ( ) : string Getter for fieldName
getName ( ) : string Provides the name of the article type.
getPhraseId ( ) : integer Provides article type phraseId.
setArticleTypeFields ( ArrayCollection $articleTypeFields ) : self Setter for articleTypeFields
setName ( string $name ) : Newscoop\Entity\ArticleType Set the name of the article type
setPhraseId ( $phraseId ) Set article type phraseId.

Method Details

__toString() public method

Used for update and stuff
public __toString ( ) : string
return string

getArticleTypeFields() public method

Getter for articleTypeFields
public getArticleTypeFields ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

getFieldName() public method

Getter for fieldName
public getFieldName ( ) : string
return string

getName() public method

Provides the name of the article type.
public getName ( ) : string
return string The name of the theme.

getPhraseId() public method

Provides article type phraseId.
public getPhraseId ( ) : integer
return integer

setArticleTypeFields() public method

Setter for articleTypeFields
public setArticleTypeFields ( ArrayCollection $articleTypeFields ) : self
$articleTypeFields Doctrine\Common\Collections\ArrayCollection Value to set
return self

setName() public method

Set the name of the article type
public setName ( string $name ) : Newscoop\Entity\ArticleType
$name string The name of the article type, must not be null or empty.
return Newscoop\Entity\ArticleType This object for chaining purposes.

setPhraseId() public method

Set article type phraseId.
public setPhraseId ( $phraseId )

Property Details

$articleTypeFields protected_oe property

(at) OneToMany( targetEntity="Newscoop\Entity\ArticleTypeField", mappedBy="articleType" )
protected ArrayCollection,Doctrine\Common\Collections $articleTypeFields
return Doctrine\Common\Collections\ArrayCollection

$fieldName protected_oe property

protected $fieldName

$name protected_oe property

protected $name

$phraseId protected_oe property

protected int $phraseId
return integer