PHP Class Ojs\JournalBundle\Entity\JournalAnnouncement

Inheritance: extends Prezent\Doctrine\Translatable\Entity\AbstractTranslatable, implements Ojs\JournalBundle\Entity\JournalItemInterface, use trait Ojs\CoreBundle\Entity\DisplayTrait, use trait Ojs\CoreBundle\Entity\TranslateableTrait
Datei anzeigen Open project: ojs/ojs Class Usage Examples

Protected Properties

Property Type Description
$id integer
$translations

Public Methods

Method Description
__construct ( ) Constructor
__toString ( )
getContent ( ) : string Get content
getId ( ) : integer Get id
getImage ( ) : string
getJournal ( ) : Journal
getTitle ( ) : string Get title
getTitleTranslations ( ) : string Get title translations
setContent ( string $content ) : JournalAnnouncement Set content
setImage ( string $image )
setJournal ( Journal $journal )
setTitle ( string $title ) : JournalAnnouncement Set title
translate ( null $locale = null ) : mixed | null | JournalAnnouncementTranslation Translation helper method

Method Details

__construct() public method

Constructor
public __construct ( )

__toString() public method

public __toString ( )

getContent() public method

Get content
public getContent ( ) : string
return string

getId() public method

Get id
public getId ( ) : integer
return integer

getImage() public method

public getImage ( ) : string
return string

getJournal() public method

public getJournal ( ) : Journal
return Journal

getTitle() public method

Get title
public getTitle ( ) : string
return string

getTitleTranslations() public method

Get title translations
public getTitleTranslations ( ) : string
return string

setContent() public method

Set content
public setContent ( string $content ) : JournalAnnouncement
$content string
return JournalAnnouncement

setImage() public method

public setImage ( string $image )
$image string

setJournal() public method

public setJournal ( Journal $journal )
$journal Journal

setTitle() public method

Set title
public setTitle ( string $title ) : JournalAnnouncement
$title string
return JournalAnnouncement

translate() public method

Translation helper method
public translate ( null $locale = null ) : mixed | null | JournalAnnouncementTranslation
$locale null
return mixed | null | JournalAnnouncementTranslation

Property Details

$id protected_oe property

protected int $id
return integer

$translations protected_oe property

protected $translations