PHP Class common\services\PostService

Afficher le fichier Open project: iiyii/getyii Class Usage Examples

Méthodes publiques

Méthode Description
contentComment ( $content, $model )
contentReplaceAtUser ( $content, $model ) : string 内容包含 '@summer ' 的将其替换为用户主页链接
contentReplaceFloor ( $content ) : string 评论内容包含 '#n楼' 的将其替换为楼层锚链接
contentReplaceTag ( $content )
contentTopic ( $content, $model )
contentTweet ( $content, $model )
delete ( Post $post ) 删除帖子
filterContent ( $content ) 过滤内容
parseUsername ( $content )

Method Details

contentComment() public static méthode

public static contentComment ( $content, $model )

contentReplaceAtUser() public static méthode

内容包含 '@summer ' 的将其替换为用户主页链接
public static contentReplaceAtUser ( $content, $model ) : string
$content string
Résultat string

contentReplaceFloor() public static méthode

评论内容包含 '#n楼' 的将其替换为楼层锚链接
public static contentReplaceFloor ( $content ) : string
$content string
Résultat string

contentReplaceTag() public static méthode

public static contentReplaceTag ( $content )

contentTopic() public static méthode

public static contentTopic ( $content, $model )

contentTweet() public static méthode

public static contentTweet ( $content, $model )

delete() public static méthode

删除帖子
public static delete ( Post $post )
$post common\models\Post

filterContent() public méthode

过滤内容
public filterContent ( $content )

parseUsername() public static méthode

public static parseUsername ( $content )