PHP Class NewsModel, thinksns

User: xujiantao Date: 13-11-19 Time: 20:07
Inheritance: extends BaseModel
Exibir arquivo Open project: medz/thinksns-4 Class Usage Examples

Protected Properties

Property Type Description
$_auto array 自动填充
$_validate array 定义自动验证
$fields unknown_type 字段列表
$tableName string 使用的表名称

Public Methods

Method Description
deleteAssociatedData ( integer $cid ) : boolean 删除分类后的回调
getList ( $limit = 20, $type, $keywords = '', $order = '', $findPage = true ) 前台列表获取
getOneyById ( integer $id, boolean $is_admin = false, $update_hits = false ) : array 根据ID获取资料
getSourceInfo ( integer $id ) : mixed 获取信息
getState ( integer $state = null ) : mixed 获取状态
setNews ( $uid ) : mixed 更新信息

Private Methods

Method Description
getChildTids ( integer $pid ) : array 获取子分类的ID串

Method Details

deleteAssociatedData() public method

删除分类后的回调
public deleteAssociatedData ( integer $cid ) : boolean
$cid integer
return boolean

getList() public method

前台列表获取
public getList ( $limit = 20, $type, $keywords = '', $order = '', $findPage = true )

getOneyById() public method

根据ID获取资料
public getOneyById ( integer $id, boolean $is_admin = false, $update_hits = false ) : array
$id integer
$is_admin boolean 是否是后台
return array

getSourceInfo() public method

获取信息
public getSourceInfo ( integer $id ) : mixed
$id integer
return mixed

getState() public method

获取状态
public getState ( integer $state = null ) : mixed
$state integer 状态ID
return mixed

setNews() public method

更新信息
public setNews ( $uid ) : mixed
return mixed

Property Details

$_auto protected_oe property

自动填充
protected array $_auto
return array

$_validate protected_oe property

定义自动验证
protected array $_validate
return array

$fields protected_oe property

字段列表
protected unknown_type $fields
return unknown_type

$tableName protected_oe property

使用的表名称
protected string $tableName
return string