PHP Class WeibaPostModel, thinksns

Author: jason ([email protected])
Inheritance: extends Model
Show file Open project: medz/thinksns-4

Protected Properties

Property Type Description
$error
$fields
$tableName

Public Methods

Method Description
createPostForApi ( $weiba_id, $title, $content, $uid ) 发表帖子forapi
favoriteForApi ( $post_id ) 收藏帖子
getSourceInfo ( $row_id, $_forApi = false ) 为feed提供应用数据来源信息 - 与模板weiba_post.feed.php配合使用
syncToFeed ( $post_id, $title, $content, $uid ) : integer 发帖同步到分享
unfavoriteForApi ( $post_id ) 取消收藏帖子

Method Details

createPostForApi() public method

发表帖子forapi
public createPostForApi ( $weiba_id, $title, $content, $uid )

favoriteForApi() public method

收藏帖子
public favoriteForApi ( $post_id )

getSourceInfo() public method

为feed提供应用数据来源信息 - 与模板weiba_post.feed.php配合使用
public getSourceInfo ( $row_id, $_forApi = false )

syncToFeed() public method

发帖同步到分享
public syncToFeed ( $post_id, $title, $content, $uid ) : integer
return integer feed_id 分享ID

unfavoriteForApi() public method

取消收藏帖子
public unfavoriteForApi ( $post_id )

Property Details

$error protected property

protected $error

$fields protected property

protected $fields

$tableName protected property

protected $tableName