public static function contentComment($content, $model) { $content = static::contentReplaceAtUser($content, $model); $content = static::contentReplaceFloor($content); return $content; }
public function beforeSave($insert) { if (!parent::beforeSave($insert)) { return false; } $this->comment = PostService::contentComment($this->comment, $this); return true; }