好!欢迎访问迷津渡口 现在时间是: 天气 °C ~ °C

迷津渡口

越感到迷惑 越接近真理

emlog MVC解构12--Model模型之Sort_Model

模型Sort_Model是文章分类模型。

属性:

private $db内部数据库连接对象,用于存取文章分类的数据库数据

方法表:

方法注释
function __construct()构造方法,新建内部数据库连接对象
function getSorts()获取分类列表,返回包含分类名列表的数组
function updateSort($sortData,$sid)更新分类数据,参数$sortData是包含分类数据的数组,$sid是分类的ID
function addSort($name,$alias,$taxis,$pid,$description,$template)添加分类,参数$name为分类名,$alias为分类别名,一般为英文别名,$taxis为分类排列序号,$pid为父分类的ID,$description为分类描述,$template为分类页面模板名,没有自定义则默认设为log_list
function deleteSort($sid)删除分类,将此分类的日志移动到未分类,将此分类的子分类改为主分类,最后删除此分类$sid为分类ID
function getOneSortById($sid)获取某分类的数据,$sid为分类ID,返回包含此分类数据的数组
function getSortName($sid)获取某分类的名称,$sid为分类ID


点赞1
 标签: emlog mvc model sort_model
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
jkjuiceplus
 jkjuiceplus 约 5 小时前回复
#173
<a href="http://www.bgaddiict.com/nike-stefan-janoski-max-triple-noir-chaussuresl">nike stefan janoski max triple noir</a> <a href="http://www.deriogolf.com/hommes-nike-zoom-pegasus-32-lotus-chaussuresl">hommes nike zoom pegasus 32 lotus</a> <a href="http://www.poluscompany.com/adidas-zx-750-blau-schuhej">adidas zx 750 blau</a> <a href="http://www.pariswebjob.com/adidas-gazelle-grau-and-gold-schuhei">adidas gazelle grau and gold</a> <a href="http://www.dakvideo.com/kvinner-air-jordan-retro-12-low-hvit-bl%C3%A5-obuvj">kvinner air jordan retro 12 low hvit bl氓</a> <a href="http://www.freshkeema.com/nike-air-max-1-rosso-nero-bianca-scarpel">nike air max 1 rosso nero bianca</a>
jkjuiceplus http://www.jkjuiceplus.com/
gardensbyruth
 gardensbyruth 2019-04-24 08:16回复
#172
<a href="http://www.autopilotart.com/air-jordan-retro-12-grigio-arancia-butyc">air jordan retro 12 grigio arancia</a> <a href="http://www.iflextoday.com/nike-kobe-oro-arancia-scarpeb">nike kobe oro arancia</a> <a href="http://www.iamsamart.com/nike-air-max-90-b%C3%B8rn-bl%C3%A5-r%C3%B8d-kurpesf">nike air max 90 b酶rn bl氓 r酶d</a> <a href="http://www.groupontatil.com/air-jordan-retro-28-himmelen-bl%C3%A5-bl%C3%A5-scarpea">air jordan retro 28 himmelen bl氓 bl氓</a> <a href="http://www.dblynx.com/kobe-10-low-wei%C3%9F-queen-obuvb">kobe 10 low wei脽 queen</a> <a href="http://www.alpertsonline.com/curry-2-minzgr%C3%BCn-xanax-chaussuresd">curry 2 minzgr眉n xanax</a>
gardensbyruth http://www.gardensbyruth.com/
dylanhassinger
 dylanhassinger 2019-04-23 20:40回复
#171
<a href="http://www.cosmonet.net/air-jordan-melo-gr%C3%B8n-brun-butye">air jordan melo gr酶n brun</a> <a href="http://www.cpgjoblist.net/how-to-clean-nike-free-run-2-schuhe-scarped">how to clean nike free run 2 schuhe</a> <a href="http://www.crosswindschurch.net/nike-lunar-tr1-lila-schuhea">nike lunar tr1 lila</a> <a href="http://www.cuttingedgeoffers.net/nike-free-rn-high-arch-schuhe-kurpesb">nike free rn high arch schuhe</a> <a href="http://www.cvceurope.net/nike-zoom-structure-19-lila-silber-schuhef">nike zoom structure 19 lila silber</a> <a href="http://www.cyberlec.net/nike-zoom-vomero-12-blu-rosa-butye">nike zoom vomero 12 blu rosa</a>
dylanhassinger http://www.dylanhassinger.net/
lauraenergy
 lauraenergy 2019-04-23 19:02回复
#170
<a href="http://www.yeliseeva.com/air-jordan-retro-5-gull-svart-obuvk">air jordan retro 5 gull svart</a> <a href="http://www.miembrojr.com/mennns-air-max-90-em-bl%C3%A5-svart-obuvi">mennns air max 90 em bl氓 svart</a> <a href="http://www.faridekhalaf.com/nike-roshe-run-jacquard-negro-zapatosk">nike roshe run jacquard negro</a> <a href="http://www.rawbiofast.com/coach-shoes-mens-coach-new-york-dress-shoes-coachh">coach shoes mens coach new york dress shoes</a> <a href="http://www.mabarrel.com/air-jordan-retro-18-red-grey-shoesj">air jordan retro 18 red grey</a> <a href="http://www.almarsecurity.com/air-jordan-retro-7-hvid-gr%C3%B8n-skoq">air jordan retro 7 hvid gr酶n</a>
lauraenergy http://www.lauraenergy.com/
eczacinim
 eczacinim 2019-04-23 06:23回复
#169
<a href="http://www.koreazp.com/nike-zoom-pegasus-32-dam%C3%A4nner-gr%C3%BCn-gold-schuhei">nike zoom pegasus 32 dam盲nner gr眉n gold</a> <a href="http://www.hiltonskyshop.com/dam%C3%A4nner-nike-air-max-90-vt-gelb-gold-schuheh">dam盲nner nike air max 90 vt gelb gold</a> <a href="http://www.lavaforchange.com/nike-air-max-cb34-all-hvit-obuvj">nike air max cb34 all hvit</a> <a href="http://www.lifeonfilms.com/femminile-asics-gel-noosa-tri-9-rosso-grigio-scarpep">femminile asics gel noosa tri 9 rosso grigio</a> <a href="http://www.midlandroofer.com/nike-zoom-structure-19-femmes-bleu-violet-chaussuresh">nike zoom structure 19 femmes bleu violet</a> <a href="http://www.pearsonchool.com/prada-br4258-handbags-in-coffee-pradah">prada br4258 handbags in coffee</a>
eczacinim http://www.eczacinim.com/
xpostshopx
 xpostshopx 2019-04-23 03:43回复
#168
<a href="http://www.koreazp.com/adidas-harden-green-sky-blue-shoesj">adidas harden green sky blue</a> <a href="http://www.hiltonskyshop.com/nike-lebron-ambassador-9-guld-r%C3%B8d-skoi">nike lebron ambassador 9 guld r酶d</a> <a href="http://www.lavaforchange.com/maschio-nike-roshe-yeezy-boost-nero-blu-scarpel">maschio nike roshe yeezy boost nero blu</a> <a href="http://www.lifeonfilms.com/nike-free-run-3-light-blue-shoesj">nike free run 3 light blue</a> <a href="http://www.midlandroofer.com/michael-kors-black-and-silver-crossbody-bag-mkh">michael kors black and silver crossbody bag</a> <a href="http://www.pearsonchool.com/air-jordan-retro-7-kvinners-svart-gul-obuvi">air jordan retro 7 kvinners svart gul</a>
[url=http://www.xpostshopx.com/]xpostshopx[/url]
bamadu
 bamadu 2019-04-22 15:23回复
#167
<a href="http://www.poppiesdelray.com/women-air-jordan-retro-12-low-white-blue-shoesk">women air jordan retro 12 low white blue</a> <a href="http://www.soundsofbuzz.com/nike-air-trainer-huarache-triple-sort-nice-kicks-skoj">nike air trainer huarache triple sort nice kicks</a> <a href="http://www.hozloli.com/m%C3%A4nner-nike-air-max-tailwind-5-grau-gr%C3%BCn-schwarz-schuheh">m盲nner nike air max tailwind 5 grau gr眉n schwarz</a> <a href="http://www.privetaustria.com/adidas-tubular-primeknit-grey-shoesk">adidas tubular primeknit grey</a> <a href="http://www.goodnnasty.com/michael-michael-kors-jet-set-large-east-west-crossbody-mkh">michael michael kors jet set large east west crossbody</a> <a href="http://www.ankarasanal.com/air-jordan-eclipse-lilla-gr%C3%B8nn-obuvi">air jordan eclipse lilla gr酶nn</a>
bamadu http://www.bamadu.com/
mbaowensboro
 mbaowensboro 2019-04-19 02:16回复
#166
<a href="http://www.cashfordick.com/nike-flyknit-racer-green-black-shoesi">nike flyknit racer green black</a> <a href="http://www.flpainfree.com/nike-free-5.0-negro-and-azul-zapatosi">nike free 5.0 negro and azul</a> <a href="http://www.fayjoneshome.com/nike-mercurial-superfly-ag-r%C3%B8d-bl%C3%A5-sort-skoh">nike mercurial superfly ag r酶d bl氓 sort</a> <a href="http://www.lukyhammers.com/nike-magista-nero-and-bianca-scarpei">nike magista nero and bianca</a> <a href="http://www.kleinconcept.com/nike-cortez-bianca-varsity-rosso-scarpej">nike cortez bianca varsity rosso</a> <a href="http://www.simmordasa.com/ersan-ilyasova-turkey-2010-world-championship-trikot-camiseta-canotta-jersey-nflh">ersan ilyasova turkey 2010 world championship trikot camiseta canotta jersey</a>
mbaowensboro http://www.mbaowensboro.com/
jamiecirillo
 jamiecirillo 2019-04-19 01:55回复
#165
<a href="http://www.atrapaniapp.com/nike-roshe-two-wei%C3%9F-silber-schuhej">nike roshe two wei脽 silber</a> <a href="http://www.maplebeyond.com/air-jordan-4-hvid-cem%C3%A6ndt-on-feet-skoh">air jordan 4 hvid cem忙ndt on feet</a> <a href="http://www.collisionsix.com/nike-air-max-90-kpu-oranger-or-chaussuresh">nike air max 90 kpu oranger or</a> <a href="http://www.todololitas.com/hat-store-miami-hatl">hat store miami</a> <a href="http://www.jcwjrlaw.com/nike-zoom-structure-20-jaune-noir-chaussuresh">nike zoom structure 20 jaune noir</a> <a href="http://www.vstsblog.com/hombres-nike-air-max-bw-blanco-azul-zapatosp">hombres nike air max bw blanco azul</a>
jamiecirillo http://www.jamiecirillo.com/
sonegboom
 sonegboom 2019-04-19 00:42回复
#164
<a href="http://www.lifetimekiawarranty.net/zoom-kobe-vi-for-venta-schuhee">zoom kobe vi for venta</a> <a href="http://www.llensa.net/adidas-zx-900-venta-utah-chaussuresg">adidas zx 900 venta utah</a> <a href="http://www.lockip.net/nike-sb-stefan-janoski-max-p%C3%BArpura-guy-obuvc">nike sb stefan janoski max p煤rpura guy</a> <a href="http://www.lockseventeen.net/nike-air-max-shake-evolve-bleu-ciel-kurpesb">nike air max shake evolve bleu ciel</a> <a href="http://www.logicaldrift.net/air-max-zero-night-maroon-atomic-rosa-grigio-kurpese">air max zero night maroon atomic rosa grigio</a> <a href="http://www.longevitysa.net/herren-supra-tk-society-schwarz-wei%C3%9F-kurpesd">herren supra tk society schwarz wei脽</a>
sonegboom http://www.sonegboom.net/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸