PHP 클래스 Backend\Modules\ContentBlocks\Entity\ContentBlock

파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
archive ( )
create ( integer $id, integer $userId, integer $extraId, string $locale, string $title, string $text, boolean $isHidden, string $template = self::DEFAULT_TEMPLATE ) : self
getCreatedOn ( ) : DateTime
getEditedOn ( ) : DateTime
getExtraId ( ) : integer
getId ( ) : integer
getLocale ( ) : Locale
getRevisionId ( ) : integer
getStatus ( ) : ContentBlockStatus
getTemplate ( ) : string
getText ( ) : string
getTitle ( ) : string
getUserId ( ) : integer
isHidden ( ) : boolean
postPersist ( )
prePersist ( )
preUpdate ( )
update ( string $title, string $text, boolean $isHidden, string $template ) : ContentBlock

비공개 메소드들

메소드 설명
__construct ( integer $id, integer $userId, integer $extraId, string $template, string $locale, string $title, string $text, boolean $isHidden, ContentBlockStatus $status )
updateWidget ( ) Update the widget so it shows the correct title and has the correct template

메소드 상세

archive() 공개 메소드

public archive ( )

create() 공개 정적인 메소드

public static create ( integer $id, integer $userId, integer $extraId, string $locale, string $title, string $text, boolean $isHidden, string $template = self::DEFAULT_TEMPLATE ) : self
$id integer
$userId integer
$extraId integer The id of the module extra
$locale string
$title string
$text string
$isHidden boolean
$template string
리턴 self

getCreatedOn() 공개 메소드

public getCreatedOn ( ) : DateTime
리턴 DateTime

getEditedOn() 공개 메소드

public getEditedOn ( ) : DateTime
리턴 DateTime

getExtraId() 공개 메소드

public getExtraId ( ) : integer
리턴 integer

getId() 공개 메소드

public getId ( ) : integer
리턴 integer

getLocale() 공개 메소드

public getLocale ( ) : Locale
리턴 Backend\Core\Language\Locale

getRevisionId() 공개 메소드

public getRevisionId ( ) : integer
리턴 integer

getStatus() 공개 메소드

public getStatus ( ) : ContentBlockStatus
리턴 Backend\Modules\ContentBlocks\ValueObject\ContentBlockStatus

getTemplate() 공개 메소드

public getTemplate ( ) : string
리턴 string

getText() 공개 메소드

public getText ( ) : string
리턴 string

getTitle() 공개 메소드

public getTitle ( ) : string
리턴 string

getUserId() 공개 메소드

public getUserId ( ) : integer
리턴 integer

isHidden() 공개 메소드

public isHidden ( ) : boolean
리턴 boolean

postPersist() 공개 메소드

public postPersist ( )

prePersist() 공개 메소드

public prePersist ( )

preUpdate() 공개 메소드

public preUpdate ( )

update() 공개 메소드

public update ( string $title, string $text, boolean $isHidden, string $template ) : ContentBlock
$title string
$text string
$isHidden boolean
$template string
리턴 ContentBlock