PHP Class Ojs\JournalBundle\Entity\JournalPost

Inheritance: extends Prezent\Doctrine\Translatable\Entity\AbstractTranslatable, implements Ojs\JournalBundle\Entity\JournalItemInterface, use trait Ojs\CoreBundle\Entity\GenericEntityTrait
ファイルを表示 Open project: ojs/ojs Class Usage Examples

Protected Properties

Property Type Description
$id integer
$translations

Public Methods

Method Description
__construct ( ) Constructor
__toString ( ) : string
getContent ( ) : string Get content
getCreatedAt ( ) : DateTime Get createdAt
getId ( ) : integer Get id
getJournal ( ) : Journal
getSlug ( ) : string Get slug
getTitle ( ) : string Get title
getTitleTranslations ( ) : string Get title translations
getUpdatedAt ( ) : DateTime Get updatedAt
setContent ( string $content ) Set content
setCreatedAt ( DateTime $createdAt ) Set createdAt
setJournal ( Journal $journal )
setSlug ( string $slug ) Set slug
setTitle ( string $title ) Set title
setUpdatedAt ( DateTime $updatedAt ) Set updatedAt
translate ( null $locale = null ) : mixed | Ojs\JournalBundle\Entity\JournalPostTranslation Translation helper method

Method Details

__construct() public method

Constructor
public __construct ( )

__toString() public method

public __toString ( ) : string
return string

getContent() public method

Get content
public getContent ( ) : string
return string

getCreatedAt() public method

Get createdAt
public getCreatedAt ( ) : DateTime
return DateTime

getId() public method

Get id
public getId ( ) : integer
return integer

getJournal() public method

public getJournal ( ) : Journal
return Journal

getSlug() public method

Get slug
public getSlug ( ) : string
return string

getTitle() public method

Get title
public getTitle ( ) : string
return string

getTitleTranslations() public method

Get title translations
public getTitleTranslations ( ) : string
return string

getUpdatedAt() public method

Get updatedAt
public getUpdatedAt ( ) : DateTime
return DateTime

setContent() public method

Set content
public setContent ( string $content )
$content string

setCreatedAt() public method

Set createdAt
public setCreatedAt ( DateTime $createdAt )
$createdAt DateTime

setJournal() public method

public setJournal ( Journal $journal )
$journal Journal

setSlug() public method

Set slug
public setSlug ( string $slug )
$slug string

setTitle() public method

Set title
public setTitle ( string $title )
$title string

setUpdatedAt() public method

Set updatedAt
public setUpdatedAt ( DateTime $updatedAt )
$updatedAt DateTime

translate() public method

Translation helper method
public translate ( null $locale = null ) : mixed | Ojs\JournalBundle\Entity\JournalPostTranslation
$locale null
return mixed | Ojs\JournalBundle\Entity\JournalPostTranslation

Property Details

$id protected_oe property

protected int $id
return integer

$translations protected_oe property

protected $translations