getCondition($where_array) ; return Db::update('inform_subject',$update_array,$where) ; } /* * 删除 * @param array $param * @return bool */ public function dropInformSubject($param){ $where = $this->getCondition($param) ; return Db::delete('inform_subject', $where) ; } /* * 获得列表 * @param array $condition * @param obj $page //分页对象 * @return array */ public function getInformSubject($condition='',$page='',$field=''){ $param = array() ; $param['table'] = 'inform_subject' ; $param['field'] = $field; $param['where'] = $this->getCondition($condition); $param['order'] = $condition['order'] ? $condition['order']: ' inform_subject_id desc '; return Db::select($param,$page) ; } }