PHP Class Ojs\JournalBundle\Entity\Block

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
getBlockOrder ( ) : integer Get block_order
getColor ( ) : string Get color
getContent ( ) : string Get content
getId ( ) : integer Get id
getJournal ( ) : Journal Get journal
getTitle ( ) : string Get title
setBlockOrder ( integer $blockOrder ) : Block Set blockOrder
setColor ( string $color ) : Block Set color
setContent ( string $content ) : Block Set content
setJournal ( Journal $journal = null ) : Board Set journal
setTitle ( string $title ) : Block Set title
translate ( null $locale = null ) : mixed | null | BlockTranslation Translation helper method

Method Details

__construct() public method

Constructor
public __construct ( )

__toString() public method

public __toString ( ) : string
return string

getBlockOrder() public method

Get block_order
public getBlockOrder ( ) : integer
return integer

getColor() public method

Get color
public getColor ( ) : string
return string

getContent() public method

Get content
public getContent ( ) : string
return string

getId() public method

Get id
public getId ( ) : integer
return integer

getJournal() public method

Get journal
public getJournal ( ) : Journal
return Journal

getTitle() public method

Get title
public getTitle ( ) : string
return string

setBlockOrder() public method

Set blockOrder
public setBlockOrder ( integer $blockOrder ) : Block
$blockOrder integer
return Block

setColor() public method

Set color
public setColor ( string $color ) : Block
$color string
return Block

setContent() public method

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

setJournal() public method

Set journal
public setJournal ( Journal $journal = null ) : Board
$journal Journal
return Board

setTitle() public method

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

translate() public method

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

Property Details

$id protected_oe property

protected int $id
return integer

$translations protected_oe property

protected $translations