PHP Class Ojs\AdminBundle\Entity\AdminPage

Inheritance: extends Prezent\Doctrine\Translatable\Entity\AbstractTranslatable, 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
getSlug ( ) : string
getTitle ( ) : string Get title
getTitleTranslations ( ) : string Get title translations
isVisible ( ) : boolean Is visible
setBody ( string $body ) Set body
setSlug ( string $slug )
setTitle ( string $title ) Set title
setVisible ( boolean $visible ) Set visible
translate ( null $locale = null ) : mixed | null | Ojs\AdminBundle\Entity\AdminPageTranslation 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

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 )
$body string

setSlug() public method

public setSlug ( string $slug )
$slug string

setTitle() public method

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

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

Property Details

$id protected_oe property

protected int $id
return integer

$translations protected_oe property

protected $translations