PHP Class Ojs\AdminBundle\Entity\AdminPost

Inheritance: extends Prezent\Doctrine\Translatable\Entity\AbstractTranslatable, use trait Ojs\CoreBundle\Entity\GenericEntityTrait
Show file 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
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
setSlug ( string $slug ) Set slug
setTitle ( string $title ) Set title
setUpdatedAt ( DateTime $updatedAt ) Set updatedAt
translate ( null $locale = null ) : mixed | null | 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

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

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 | null | Ojs\JournalBundle\Entity\JournalPostTranslation
$locale null
return mixed | null | Ojs\JournalBundle\Entity\JournalPostTranslation

Property Details

$id protected property

protected int $id
return integer

$translations protected property

protected $translations