AnnouncementModel::delannoun PHP Method

delannoun() public method

删除公告
public delannoun ( integer $id ) : integer
$id integer 公告ID
return integer 是否删除成功
    public function delannoun($id)
    {
        // 验证数据正确性
        if (empty($id)) {
            $this->error = L('PUBLIC_WRONG_DATA');
            return false;
        }
        $map['id'] = is_array($id) ? array('IN', $id) : intval($id);
        return $this->where($map)->delete();
    }
AnnouncementModel