PHP Class Ojs\JournalBundle\Entity\JournalPage

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
getBody ( ) : string Get body
getId ( ) : integer Get id
getJournal ( ) : Journal
getPageOrder ( ) : integer
getSlug ( ) : string
getTitle ( ) : string Get title
getTitleTranslations ( ) : string Get title translations
isVisible ( ) : boolean Is visible
setBody ( string $body ) : JournalPage Set body
setJournal ( Journal $journal )
setPageOrder ( integer $pageOrder )
setSlug ( string $slug )
setTitle ( string $title ) : JournalPage Set title
setVisible ( boolean $visible ) Set visible
translate ( null $locale = null ) : mixed | null | Ojs\JournalBundle\Entity\JournalPageTranslation Translation helper method

Method Details

__construct() public method

Constructor
public __construct ( )

__toString() public method

public __toString ( ) : string
return string

getBody() public method

Get body
public getBody ( ) : string
return string

getId() public method

Get id
public getId ( ) : integer
return integer

getJournal() public method

public getJournal ( ) : Journal
return Journal

getPageOrder() public method

public getPageOrder ( ) : integer
return integer

getSlug() public method

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

isVisible() public method

Is visible
public isVisible ( ) : boolean
return boolean

setBody() public method

Set body
public setBody ( string $body ) : JournalPage
$body string
return JournalPage

setJournal() public method

public setJournal ( Journal $journal )
$journal Journal

setPageOrder() public method

public setPageOrder ( integer $pageOrder )
$pageOrder integer

setSlug() public method

public setSlug ( string $slug )
$slug string

setTitle() public method

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

setVisible() public method

Set visible
public setVisible ( boolean $visible )
$visible boolean

translate() public method

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

Property Details

$id protected_oe property

protected int $id
return integer

$translations protected_oe property

protected $translations