Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
Flarum
Core
Post
AbstractEventPost
setContentAttribute
Flarum\Core\Post\AbstractEventPost::setContentAttribute PHP Method
AbstractEventPost Class Documentation
Mostra file
Open project: flarum/core
setContentAttribute()
public
method
Serialize the content attribute to be stored in the database as JSON.
public
setContentAttribute
(
string
$value
)
$value
string
public function setContentAttribute($value) { $this->attributes['content'] = json_encode($value); }
AbstractEventPost
getContentAttribute
setContentAttribute