common\services\PostService::contentComment PHP Method

contentComment() public static method

public static contentComment ( $content, $model )
    public static function contentComment($content, $model)
    {
        $content = static::contentReplaceAtUser($content, $model);
        $content = static::contentReplaceFloor($content);
        return $content;
    }

Usage Example

Exemplo n.º 1
0
 public function beforeSave($insert)
 {
     if (!parent::beforeSave($insert)) {
         return false;
     }
     $this->comment = PostService::contentComment($this->comment, $this);
     return true;
 }