PHP Class Backend\Modules\ContentBlocks\Entity\ContentBlock

Datei anzeigen Open project: forkcms/forkcms Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
__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

Method Details

archive() public method

public archive ( )

create() public static method

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
return self

getCreatedOn() public method

public getCreatedOn ( ) : DateTime
return DateTime

getEditedOn() public method

public getEditedOn ( ) : DateTime
return DateTime

getExtraId() public method

public getExtraId ( ) : integer
return integer

getId() public method

public getId ( ) : integer
return integer

getLocale() public method

public getLocale ( ) : Locale
return Backend\Core\Language\Locale

getRevisionId() public method

public getRevisionId ( ) : integer
return integer

getStatus() public method

public getStatus ( ) : ContentBlockStatus
return Backend\Modules\ContentBlocks\ValueObject\ContentBlockStatus

getTemplate() public method

public getTemplate ( ) : string
return string

getText() public method

public getText ( ) : string
return string

getTitle() public method

public getTitle ( ) : string
return string

getUserId() public method

public getUserId ( ) : integer
return integer

isHidden() public method

public isHidden ( ) : boolean
return boolean

postPersist() public method

public postPersist ( )

prePersist() public method

public prePersist ( )

preUpdate() public method

public preUpdate ( )

update() public method

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