PHP 클래스 Ojs\JournalBundle\Entity\JournalPost

상속: extends Prezent\Doctrine\Translatable\Entity\AbstractTranslatable, implements Ojs\JournalBundle\Entity\JournalItemInterface, use trait Ojs\CoreBundle\Entity\GenericEntityTrait
파일 보기 프로젝트 열기: ojs/ojs 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$id integer
$translations

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

__toString() 공개 메소드

public __toString ( ) : string
리턴 string

getContent() 공개 메소드

Get content
public getContent ( ) : string
리턴 string

getCreatedAt() 공개 메소드

Get createdAt
public getCreatedAt ( ) : DateTime
리턴 DateTime

getId() 공개 메소드

Get id
public getId ( ) : integer
리턴 integer

getJournal() 공개 메소드

public getJournal ( ) : Journal
리턴 Journal

getSlug() 공개 메소드

Get slug
public getSlug ( ) : string
리턴 string

getTitle() 공개 메소드

Get title
public getTitle ( ) : string
리턴 string

getTitleTranslations() 공개 메소드

Get title translations
public getTitleTranslations ( ) : string
리턴 string

getUpdatedAt() 공개 메소드

Get updatedAt
public getUpdatedAt ( ) : DateTime
리턴 DateTime

setContent() 공개 메소드

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

setCreatedAt() 공개 메소드

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

setJournal() 공개 메소드

public setJournal ( Journal $journal )
$journal Journal

setSlug() 공개 메소드

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

setTitle() 공개 메소드

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

setUpdatedAt() 공개 메소드

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

translate() 공개 메소드

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

프로퍼티 상세

$id 보호되어 있는 프로퍼티

protected int $id
리턴 integer

$translations 보호되어 있는 프로퍼티

protected $translations