\Topicinfo_model

专题model

Summary

Methods
Properties
Constants
__construct()
__get()
addCate()
editCate()
getTopicinfoList()
getTopicinfoBytm()
gettopicinfoCount()
checkUnique()
getCateRow()
delete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_getwhere()
$table
N/A

Properties

$table

$table : 

Type

Methods

__construct()

__construct() : void

Class constructor

__get()

__get(string  $key) 

__get magic

Allows models to access CI's loaded classes using the same syntax as controllers.

Parameters

string $key

addCate()

addCate(  $topicData) 

添加专题

Parameters

$topicData

editCate()

editCate(  $cateData,   $cateId = '') 

编辑数据

Parameters

$cateData
$cateId

getTopicinfoList()

getTopicinfoList(  $where = array(),   $limit = 10,   $start) 

首页列表以及查询多条数据

Parameters

$where
$limit
$start

getTopicinfoBytm()

getTopicinfoBytm(  $termNum) 

首页列表以及查询多条数据

Parameters

$termNum

gettopicinfoCount()

gettopicinfoCount(  $condition = '') 

查询总条数

Parameters

$condition

checkUnique()

checkUnique(  $cateName,   $cateId) 

验证分类名称 param int $cateId param var char $cateName

Parameters

$cateName
$cateId

getCateRow()

getCateRow(  $cateId) 

获取单条数据

Parameters

$cateId

delete()

delete(  $cateId) 

删除

Parameters

$cateId

_getwhere()

_getwhere(  $condition = '') 

条件

Parameters

$condition