PHP Class ContentWidget, thinksns

More lengthy description of what ContentWidget does and why it's fantastic.

Usage Examples

Author: Charlie Powell ([email protected])
Inheritance: extends Widget_2_1
显示文件 Open project: medz/thinksns-4 Class Usage Examples

Public Methods

Method Description
getData ( $cid, $loadLimit, $loadId, $order, $loadCount )
getListData ( integer $cid ) : array 获取频道分类列表数据
loadMore ( ) : json 载入频道内容
render ( array $data ) : string 模板渲染

Private Methods

Method Description
_formatContent ( array $data ) : array 处理分享附件数据

Method Details

getData() public method

public getData ( $cid, $loadLimit, $loadId, $order, $loadCount )

getListData() public method

获取频道分类列表数据
public getListData ( integer $cid ) : array
$cid integer 频道分类ID
return array 频道分类列表数据

loadMore() public method

载入频道内容
public loadMore ( ) : json
return json 频道渲染内容

render() public method

模板渲染
public render ( array $data ) : string
$data array 相关数据
return string 频道内容渲染入口