Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Flarum
Core
Notification
setDataAttribute
Flarum\Core\Notification::setDataAttribute PHP Méthode
Notification Class Documentation
Afficher le fichier
Open project: flarum/core
setDataAttribute()
public
méthode
When setting the data attribute, serialize it into JSON for storage in the database.
public
setDataAttribute
(
mixed
$value
)
$value
mixed
public function setDataAttribute($value) { $this->attributes['data'] = json_encode($value); }
Notification
getDataAttribute
getSubjectModelAttribute
getSubjectModels
read
sender
setDataAttribute
setSubjectModel
subject
user