PHP Class FeedTopicModel, thinksns

Inheritance: extends Model
ファイルを表示 Open project: medz/thinksns-4

Public Properties

Property Type Description
$tableName

Public Methods

Method Description
addTopic ( $content, $feedId = false, $type ) 添加话题
deleteWeiboJoinTopic ( $feedId ) 删除分享与话题关联
getFeedIdByTopic ( $topic ) 返回与话题相关的分享ID
getTopic ( $topic_name = null, $add = true ) 获取话题详细信息
getTopicId ( $topic_name, $add = true ) : integer 获取给定话题名的话题ID

Private Methods

Method Description
addFeedJoinTopic ( $topicNameOrId, $feedId, $type, $isExist = false ) 添加分享与话题的关联
addKey ( $key, $feedId, $type ) 添加话题

Method Details

addTopic() public method

添加话题
public addTopic ( $content, $feedId = false, $type )

deleteWeiboJoinTopic() public method

删除分享与话题关联
public deleteWeiboJoinTopic ( $feedId )

getFeedIdByTopic() public method

返回与话题相关的分享ID
public getFeedIdByTopic ( $topic )

getTopic() public method

获取话题详细信息
public getTopic ( $topic_name = null, $add = true )

getTopicId() public method

获取给定话题名的话题ID
public getTopicId ( $topic_name, $add = true ) : integer
return integer 话题ID

Property Details

$tableName public_oe property

public $tableName