PHP Class Backend\Modules\ContentBlocks\Entity\ContentBlock

Afficher le fichier Open project: forkcms/forkcms Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public archive ( )

create() public static méthode

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
Résultat self

getCreatedOn() public méthode

public getCreatedOn ( ) : DateTime
Résultat DateTime

getEditedOn() public méthode

public getEditedOn ( ) : DateTime
Résultat DateTime

getExtraId() public méthode

public getExtraId ( ) : integer
Résultat integer

getId() public méthode

public getId ( ) : integer
Résultat integer

getLocale() public méthode

public getLocale ( ) : Locale
Résultat Backend\Core\Language\Locale

getRevisionId() public méthode

public getRevisionId ( ) : integer
Résultat integer

getStatus() public méthode

public getStatus ( ) : ContentBlockStatus
Résultat Backend\Modules\ContentBlocks\ValueObject\ContentBlockStatus

getTemplate() public méthode

public getTemplate ( ) : string
Résultat string

getText() public méthode

public getText ( ) : string
Résultat string

getTitle() public méthode

public getTitle ( ) : string
Résultat string

getUserId() public méthode

public getUserId ( ) : integer
Résultat integer

isHidden() public méthode

public isHidden ( ) : boolean
Résultat boolean

postPersist() public méthode

public postPersist ( )

prePersist() public méthode

public prePersist ( )

preUpdate() public méthode

public preUpdate ( )

update() public méthode

public update ( string $title, string $text, boolean $isHidden, string $template ) : ContentBlock
$title string
$text string
$isHidden boolean
$template string
Résultat ContentBlock