PHP Class EventApi, thinksns

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

Public Methods

Method Description
_initialize ( ) 初始化API方法
create ( ) : array 创建活动
enrollment ( ) : array 活动报名
getArea ( ) 获取地区信息
getAreaAll ( ) : array 获取全部不重复,活动已经使用的地区
getCateAll ( ) : array 获取所有分类
getEventDays ( ) : array 获取有活动的日期
getInfo ( ) : array 获取活动详情
getList ( ) : array 获取活动列表 - 按照最新发布排序
getReply ( ) : array 获取活动回复列表
getTopEvent ( ) : array 获取推荐活动
myEnrollment ( ) : array 我参与的活动
myPost ( ) : array 我发起的活动
myStar ( ) : array 我关注的活动
postComment ( ) : array 提交活动评论
star ( ) 关注一个活动
unStar ( ) 取消关注活动
uploadImage ( ) : array 上传图片

Protected Methods

Method Description
findEvendByType ( integer $type ) : array 更具类型,返回列表数据
uploadFile ( string $uploadType, string $attachType ) : array 上传文件

Method Details

_initialize() public method

初始化API方法
Author: Seven Du ([email protected])
public _initialize ( )

create() public method

创建活动
Author: Seven Du ([email protected])
public create ( ) : array
return array

enrollment() public method

活动报名
Author: Seven Du ([email protected])
public enrollment ( ) : array
return array

findEvendByType() protected method

更具类型,返回列表数据
Author: Seven Du ([email protected])
protected findEvendByType ( integer $type ) : array
$type integer 获取的类型, 0我参与的活动 1我发起的活动, 2我关注的活动
return array

getArea() public method

获取地区信息
Author: Seven Du ([email protected])
public getArea ( )

getAreaAll() public method

获取全部不重复,活动已经使用的地区
Author: Seven Du ([email protected])
public getAreaAll ( ) : array
return array

getCateAll() public method

获取所有分类
Author: Seven Du ([email protected])
public getCateAll ( ) : array
return array

getEventDays() public method

获取有活动的日期
Author: Seven Du ([email protected])
public getEventDays ( ) : array
return array

getInfo() public method

获取活动详情
Author: Seven Du ([email protected])
public getInfo ( ) : array
return array

getList() public method

获取活动列表 - 按照最新发布排序
Author: Seven Du ([email protected])
public getList ( ) : array
return array

getReply() public method

获取活动回复列表
Author: Seven Du ([email protected])
public getReply ( ) : array
return array

getTopEvent() public method

获取推荐活动
Author: Seven Du ([email protected])
public getTopEvent ( ) : array
return array

myEnrollment() public method

我参与的活动
Author: Seven Du ([email protected])
public myEnrollment ( ) : array
return array

myPost() public method

我发起的活动
Author: Seven Du ([email protected])
public myPost ( ) : array
return array

myStar() public method

我关注的活动
Author: Seven Du ([email protected])
public myStar ( ) : array
return array

postComment() public method

提交活动评论
Author: Seven Du ([email protected])
public postComment ( ) : array
return array

star() public method

关注一个活动
Author: Seven Du ([email protected])
public star ( )

unStar() public method

取消关注活动
Author: Seven Du ([email protected])
public unStar ( )

uploadFile() protected method

上传文件
Author: Medz Seven ([email protected])
protected uploadFile ( string $uploadType, string $attachType ) : array
$uploadType string 上传文件的类型
$attachType string 保存文件的类型
return array

uploadImage() public method

上传图片
Author: Seven Du ([email protected])
public uploadImage ( ) : array
return array