PHP Class DenounceModel, thinksns

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

Protected Properties

Property Type Description
$fields
$tableName

Public Methods

Method Description
autoDenounce ( $id, integer $uid, string $content, string $type = 'feed' ) : mix 添加举报信息
deleteDenounce ( array $ids, $state ) : mix 彻底删除举报信息
getFromList ( array $map ) : array 获取相应类型的举报列表
getIdsDenounce ( string $from, string $type = '' ) : array | string 获取指定资源已经被举报且进入回收站的资源ID
reviewDenounce ( array $ids ) : mix 举报内容,审核通过

Private Methods

Method Description
_getWeiboIdsByDenounce ( array $ids ) : array 获取被举报的分享ID
_paramMaps ( string | array $ids ) : array 格式化,资源ID数据

Method Details

autoDenounce() public method

添加举报信息
public autoDenounce ( $id, integer $uid, string $content, string $type = 'feed' ) : mix
$id 举报的资源ID
$uid integer 举报用户ID
$content string 举报附加内容
$type string 举报资源类型
return mix 添加失败返回false,成功返回新添加的举报ID

deleteDenounce() public method

彻底删除举报信息
public deleteDenounce ( array $ids, $state ) : mix
$ids array 被举报的资源ID
return mix 删除失败返回false,成功返回删除的资源ID

getFromList() public method

获取相应类型的举报列表
public getFromList ( array $map ) : array
$map array 查询条件
return array 相应类型的举报列表

getIdsDenounce() public method

获取指定资源已经被举报且进入回收站的资源ID
public getIdsDenounce ( string $from, string $type = '' ) : array | string
$from string 资源类型
$type string 是输出数组还是字符串,默认为字符串
return array | string 回收站中的举报资源ID

reviewDenounce() public method

举报内容,审核通过
public reviewDenounce ( array $ids ) : mix
$ids array 被举报的资源ID
return mix 审核失败返回false,成功返回审核的资源ID

Property Details

$fields protected_oe property

protected $fields

$tableName protected_oe property

protected $tableName