好!欢迎访问迷津渡口 现在时间是: 天气 °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
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
enventsurvey
 enventsurvey 2019-05-21 20:31回复
#220
<a href="http://www.sguerradesign.com/nike-air-force-1-low-forest-gr%C3%B8nn-obuvl">nike air force 1 low forest gr酶nn</a> <a href="http://www.zeneventsja.com/kvinders-nike-air-max-bw-lilla-appelsin-skoj">kvinders nike air max bw lilla appelsin</a> <a href="http://www.adharaweb.com/nike-kobe-12-grigio-arancia-scarpel">nike kobe 12 grigio arancia</a> <a href="http://www.jrelselaw.com/mens-nike-roshe-run-speckle-yellow-gold-shoesj">mens nike roshe run speckle yellow gold</a> <a href="http://www.intellalegal.com/nike-roshe-run-blomstret-gr%C3%B8n-appelsin-skok">nike roshe run blomstret gr酶n appelsin</a> <a href="http://www.carmelscoffee.com/adidas-neo-lazy-rosa-gr%C3%A5-obuvp">adidas neo lazy rosa gr氓</a>
enventsurvey http://www.enventsurvey.com/
kingsroomlv
 kingsroomlv 2019-05-21 08:54回复
#219
<a href="http://www.gaiaescort.com/adidas-samba-blau-and-rot-schuhei">adidas samba blau and rot</a> <a href="http://www.hatbest.com/roshe-run-r%C3%B8d-and-hvid-skoh">roshe run r酶d and hvid</a> <a href="http://www.playcheater.com/miami-hurricanes-20-reed-green-jersey-nfli">miami hurricanes 20 reed green jersey</a> <a href="http://www.alanyalinks.com/menn-nike-air-max-tailwind-5-svart-hvit-obuvk">menn nike air max tailwind 5 svart hvit</a> <a href="http://www.mxclimited.com/vintage-coach-brown-leather-brass-laptop-briefcase-messenger-bag-usa-made-coachh">vintage coach brown leather brass laptop briefcase messenger bag usa made</a> <a href="http://www.ueaydin.com/maschio-viola-converse-high-tops-scarpej">maschio viola converse high tops</a>
kingsroomlv http://www.kingsroomlv.com/
kaosmotogp
 kaosmotogp 2019-05-20 18:38回复
#218
<a href="http://www.lagunawoodsre.com/nike-air-max-90-premium-oranger-noir-chaussuresh">nike air max 90 premium oranger noir</a> <a href="http://www.highbacklink.com/mujeres-nike-flyknit-racer-azul-amarillo-zapatosp">mujeres nike flyknit racer azul amarillo</a> <a href="http://www.vuurogen.com/nike-blazer-grey-yellow-shoesi">nike blazer grey yellow</a> <a href="http://www.rsvppersonnel.com/air-jordan-retro-4-dam%C3%A4nner-gelb-himmelblau-schuhei">air jordan retro 4 dam盲nner gelb himmelblau</a> <a href="http://www.shonema.com/nike-air-max-motion-olive-verde-zapatosk">nike air max motion olive verde</a> <a href="http://www.enventsurvey.com/kvinders-nike-air-presto-lyser%C3%B8d-gr%C3%B8n-skoi">kvinders nike air presto lyser酶d gr酶n</a>
kaosmotogp http://www.kaosmotogp.com/
hozloli
 hozloli 2019-05-20 04:33回复
#217
<a href="http://www.dowsadvocate.com/michael-kors-jet-set-travel-medium-tote-bag-navy-mkh">michael kors jet set travel medium tote bag navy</a> <a href="http://www.laflammesinc.com/adidas-superstar-svart-hvit-barn-obuvi">adidas superstar svart hvit barn</a> <a href="http://www.thisisitnyc.com/maschio-nike-huarache-utility-grigio-scarpek">maschio nike huarache utility grigio</a> <a href="http://www.tuurulz.com/mens-nike-air-max-97-grey-shoesi">mens nike air max 97 grey</a> <a href="http://www.todotecnicos.com/rojo-p%C3%BArpura-hombres-nike-air-max-2018-zapatos-zapatosi">rojo p煤rpura hombres nike air max 2018 zapatos</a> <a href="http://www.xaviersarrate.com/nike-air-roshe-sort-skoh">nike air roshe sort</a>
hozloli http://www.hozloli.com/
sgeventportal
 sgeventportal 2019-05-20 01:16回复
#216
<a href="http://www.lvnailbar.com/philadelphia-flyers-adidas-nhl-practice-jersey-hook-cap-hath">philadelphia flyers adidas nhl practice jersey hook cap</a> <a href="http://www.eisenhards.com/mujeres-nike-kobe-12-negro-zapatosl">mujeres nike kobe 12 negro</a> <a href="http://www.martinmakeup.com/nike-mercurial-pink-cleats-shoesk">nike mercurial pink cleats</a> <a href="http://www.dgrabovsky.com/adidas-samba-super-suede-gr%C3%B8nn-obuvi">adidas samba super suede gr酶nn</a> <a href="http://www.madeinmyindia.com/nike-shox-deliver-svart-r%C3%B8d-obuvk">nike shox deliver svart r酶d</a> <a href="http://www.manglammovers.com/hvit-nike-roshe-1-obuvi">hvit nike roshe 1</a>
sgeventportal http://www.sgeventportal.com/
anticlimaxes
 anticlimaxes 2019-05-18 18:27回复
#215
<a href="http://www.dvdlivedoor.com/adidas-ace-negro-verde-zapatosh">adidas ace negro verde</a> <a href="http://www.exterminas.com/nike-shox-gr%C3%A5-lilla-scarpea">nike shox gr氓 lilla</a> <a href="http://www.filoliteafarm.com/california-golden-bears-nike-ncaa-local-dna-seasonal-true-snapback-cap-hati">california golden bears nike ncaa local dna seasonal true snapback cap</a> <a href="http://www.shalandaleigh.com/nike-air-max-command-all-svart-trainersb">nike air max command all svart</a> <a href="http://www.skepticmoment.com/salomon-fellraiser-blau-laufen-schuhe-x10-kurpesd">salomon fellraiser blau laufen schuhe x10</a> <a href="http://www.kleankampsite.com/nike-huarache-schwarz-grau-schuhel">nike huarache schwarz grau</a>
anticlimaxes http://www.anticlimaxes.com/
fragmanizletv
 fragmanizletv 2019-05-18 07:40回复
#214
<a href="http://www.hinogi.com/mujeres-nike-kyrie-1-oro-rojo-zapatosk">mujeres nike kyrie 1 oro rojo</a> <a href="http://www.prontosignsus.com/north-face-venture-jacket-orange-northfaceh">north face venture jacket orange</a> <a href="http://www.ticahome.com/nike-zoom-structure-19-gold-schwarz-schuhej">nike zoom structure 19 gold schwarz</a> <a href="http://www.prformusic.com/nike-lunarglide-6-kvinders-sko-hvid-lyser%C3%B8d-cobalt-skoh">nike lunarglide 6 kvinders sko hvid lyser酶d cobalt</a> <a href="http://www.tatilblogu.com/nike-kyrie-2-tout-violet-chaussuresh">nike kyrie 2 tout violet</a> <a href="http://www.danieladirosa.com/chicago-bears-5-panel-hat-hatl">chicago bears 5 panel hat</a>
fragmanizletv http://www.fragmanizletv.com/
oldhalliwell
 oldhalliwell 2019-05-18 07:02回复
#213
<a href="http://www.ortzproducts.com/nike-free-blau-schwarz-schuhej">nike free blau schwarz</a> <a href="http://www.cooterscamera.com/ua-clutchfit-prodigy-bl%C3%A5-gul-skoh">ua clutchfit prodigy bl氓 gul</a> <a href="http://www.marjalfun.com/nike-flyknit-lunar-2-oranger-violet-chaussuresh">nike flyknit lunar 2 oranger violet</a> <a href="http://www.alecsblog.com/atlanta-braves-under-armour-mlb-girls-renegade-twist-cap-hatl">atlanta braves under armour mlb girls renegade twist cap</a> <a href="http://www.troudumonde.com/air-jordan-imminent-blanc-bleu-chaussuresh">air jordan imminent blanc bleu</a> <a href="http://www.smilesdrdavid.com/hombres-nike-zoom-pegasus-32-verde-rosado-zapatosp">hombres nike zoom pegasus 32 verde rosado</a>
oldhalliwell http://www.oldhalliwell.com/
rightcardeals
 rightcardeals 2019-05-18 03:06回复
#212
<a href="http://www.lovemescort.com/adidas-ultra-boost-3.0-rosso-scarpei">adidas ultra boost 3.0 rosso</a> <a href="http://www.amardinlipi.com/atlanta-braves-mlb-team-linen-9twenty-cap-hath">atlanta braves mlb team linen 9twenty cap</a> <a href="http://www.penfoldscott.com/hommes-hommes-nike-air-max-2016-vert-noir-bleu-chaussuresh">hommes hommes nike air max 2016 vert noir bleu</a> <a href="http://www.periplaneto.com/adidas-zx-flux-noir-prism-sole-chaussuresj">adidas zx flux noir prism sole</a> <a href="http://www.kocaelimtm.com/adidas-zx-700-rot-wei%C3%9F-blau-schuhek">adidas zx 700 rot wei脽 blau</a> <a href="http://www.alanlgrimmdds.com/kansas-city-royals-personalized-custom-blue-cool-base-jersey-nflh">kansas city royals personalized custom blue cool base jersey</a>
[url=http://www.rightcardeals.com/]rightcardeals[/url]
findnewcoupon
 findnewcoupon 2019-05-17 16:37回复
#211
<a href="http://www.snifferwalk.com/purdue-boilermakers-47-ncaa-double-out-47-clean-up-cap-hatl">purdue boilermakers 47 ncaa double out 47 clean up cap</a> <a href="http://www.fishmackerel.com/nike-roshe-run-speckle-femmes-gris-chaussuresh">nike roshe run speckle femmes gris</a> <a href="http://www.lauraenergy.com/nike-zoom-winflo-2-rojo-cielo-azul-zapatosk">nike zoom winflo 2 rojo cielo azul</a> <a href="http://www.magellantt.com/adidas-tubular-runner-orange-purple-shoesi">adidas tubular runner orange purple</a> <a href="http://www.sportablecrew.com/air-jordan-retro-8-himmelblau-wei%C3%9F-schuhei">air jordan retro 8 himmelblau wei脽</a> <a href="http://www.digisolnc.com/hombres-nike-air-huarache-nm-p%C3%BArpura-blanco-zapatosp">hombres nike air huarache nm p煤rpura blanco</a>
findnewcoupon http://www.findnewcoupon.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸