PHP Class XarticleModel, thinksns

Author: jason ([email protected])
Inheritance: extends Model
ファイルを表示 Open project: medz/thinksns-4

Protected Properties

Property Type Description
$fields
$tableName

Public Methods

Method Description
delArticle ( integer $id ) : integer 删除指定公告操作
saveArticle ( array $data ) : boolean | integer 保存公告数据

Method Details

delArticle() public method

删除指定公告操作
public delArticle ( integer $id ) : integer
$id integer 公告ID
return integer 0表示删除失败,1表示删除成功

saveArticle() public method

保存公告数据
public saveArticle ( array $data ) : boolean | integer
$data array 公告相关数据
return boolean | integer 若成功返回公告ID,失败返回false

Property Details

$fields protected_oe property

protected $fields

$tableName protected_oe property

protected $tableName