PHP Class AnnouncementModel, thinksns

Inheritance: extends Model
Show file Open project: medz/thinksns-4

Protected Properties

Property Type Description
$fields
$tableName

Public Methods

Method Description
delannoun ( integer $id ) : integer 删除公告
saveAnnoun ( array $data ) : integer 保存公告数据

Method Details

delannoun() public method

删除公告
public delannoun ( integer $id ) : integer
$id integer 公告ID
return integer 是否删除成功

saveAnnoun() public method

保存公告数据
public saveAnnoun ( array $data ) : integer
$data array 公告所需数据,用户UID、公告标题、公告内容、相关附件、创建时间
return integer 返回成功的公告ID

Property Details

$fields protected property

protected $fields

$tableName protected property

protected $tableName