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

コード例 #1
0
ファイル: PostComment.php プロジェクト: iiyii/getyii
 public function beforeSave($insert)
 {
     if (!parent::beforeSave($insert)) {
         return false;
     }
     $this->comment = PostService::contentComment($this->comment, $this);
     return true;
 }