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

迷津渡口

越感到迷惑 越接近真理

emlog MVC解构15--Model模型之Navi_Model

模型Navi_Model作用是处理导航。

属性:

private $db
内部数据库连接对象,用于存取导航数据库数据

常量表:

代表导航类型的数字常量,与数据库emlog_navi里面的type项一致:

常量注释
const navitype_custom = 0
自定义导航
const navitype_home = 1  首页
const navitype_t = 2微语
const navitype_admin = 3登录
const navitype_sort = 4分类导出的导航
const navitype_page = 5页面导出的导航

方法表:

方法对象
function __construct()
构造方法,新建内部数据库连接对象
function getNavis()获取导航列表数组
function updateNavi($naviData,$navid)更新导航数据,$naviData是包含导航数据的数组,$navid是导航ID
function addNavi($name,$url,$taxis,$pid,$newtab,$type=0,$typeId=0)添加导航,$name为导航名称,$url为导航网址,$taxis为导航排列序号,$newtab为是否在新窗口打开导航,$type是导航类型,$typeId是导航类型ID,具体看数据库分析
function getOneNavi($navid)获取单个导航数据数组,$navid为导航ID
function getNaviNameByUrl($url)通过导航网址获取导航名称,$url为导航网址,不存在返回空
function getNaviNameByType($type)通过导航类型获取导航名称,$type为导航类型,不存在返回空
function deleteNavi($navid)删除某个导航,$navid为导航ID


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

清空信息
关闭评论
girisweb
 girisweb 41 分钟前回复
#180
<a href="http://www.laketreepress.com/mujeres-nike-lebron-13-blanco-naranja-zapatosk">mujeres nike lebron 13 blanco naranja</a> <a href="http://www.prohaarklinik.com/nike-roshe-run-nm-negro-dark-magnet-gris-zapatosp">nike roshe run nm negro dark magnet gris</a> <a href="http://www.bonfanticare.com/pink-north-face-denali-northfaceh">pink north face denali</a> <a href="http://www.antoniopagni.com/nike-free-inneva-woven-grau-tan-schuhej">nike free inneva woven grau tan</a> <a href="http://www.wcshosting.com/kvinders-air-max-90-hyperfuse-lyser%C3%B8d-guld-skoh">kvinders air max 90 hyperfuse lyser酶d guld</a> <a href="http://www.biddingstream.com/nike-kd-7-rose-rouge-chaussuresh">nike kd 7 rose rouge</a>
girisweb http://www.girisweb.com/
mamatale
 mamatale 2019-04-24 14:18回复
#179
<a href="http://www.taiwanmeinet.com/nike-roshe-frau-rot-wei%C3%9F-schuhej">nike roshe frau rot wei脽</a> <a href="http://www.talkwithgirl.com/m%C3%A4nner-asics-gel-noosa-tri-8-gs-lime-gr%C3%BCn-orange-confetti-schuhei">m盲nner asics gel noosa tri 8 gs lime gr眉n orange confetti</a> <a href="http://www.mamatale.com/adidas-fg-adipure-11pro-trx-svart-gr%C3%B8nn-bl%C3%A5-obuvj">adidas fg adipure 11pro trx svart gr酶nn bl氓</a> <a href="http://www.strongtale.com/nike-air-max-270-flyknit-maschio-olive-bianca-scarpel">nike air max 270 flyknit maschio olive bianca</a> <a href="http://www.iranpayamco.com/nike-mercurial-superfly-ag-rose-rouge-orange-chaussuresh">nike mercurial superfly ag rose rouge orange</a> <a href="http://www.hapeid.com/maschio-nike-air-max-tailwind-6-nero-blu-scarpeh">maschio nike air max tailwind 6 nero blu</a>
mamatale http://www.mamatale.com/
northstarcamp
 northstarcamp 2019-04-24 13:26回复
#178
<a href="http://www.munchstrom.net/nike-huarache-ultra-negro-and-rojo-for-venta-schuhec">nike huarache ultra negro and rojo for venta</a> <a href="http://www.mycouponexpert.net/femmes-nike-roshe-yeezy-boost-or-noir-butyg">femmes nike roshe yeezy boost or noir</a> <a href="http://www.mydxp.net/nike-air-max-tavas-tout-noir-scarpec">nike air max tavas tout noir</a> <a href="http://www.myersmotors.net/jordan-4-blu-mars-chaussuresf">jordan 4 blu mars</a> <a href="http://www.mysaltwatersandal.net/nike-air-max-lunar-1-wei%C3%9F-rot-vertical-butya">nike air max lunar 1 wei脽 rot vertical</a> <a href="http://www.nadinesproperties.net/air-jordan-bambini-scarpe-rosso-bianca-schuhea">air jordan bambini scarpe rosso bianca</a>
[url=http://www.northstarcamp.net/]northstarcamp[/url]
fizalisfresh
 fizalisfresh 2019-04-24 01:46回复
#177
<a href="http://www.ortzproducts.com/womens-nike-air-max-87-sb-green-purple-shoesi">womens nike air max 87 sb green purple</a> <a href="http://www.cooterscamera.com/nike-free-inneva-schwarz-schuhei">nike free inneva schwarz</a> <a href="http://www.marjalfun.com/hombres-nike-flyknit-racer-oro-negro-zapatosk">hombres nike flyknit racer oro negro</a> <a href="http://www.alecsblog.com/kvinders-nike-free-tr-gr%C3%B8n-lyser%C3%B8d-skoi">kvinders nike free tr gr酶n lyser酶d</a> <a href="http://www.troudumonde.com/nike-sb-stefan-janoski-max-kvinners-s%C3%B8lv-rosa-obuvl">nike sb stefan janoski max kvinners s酶lv rosa</a> <a href="http://www.smilesdrdavid.com/nike-lebron-12-womens-orange-purple-shoesh">nike lebron 12 womens orange purple</a>
fizalisfresh http://www.fizalisfresh.com/
biddingstream
 biddingstream 2019-04-21 18:54回复
#176
<a href="http://www.profancyshop.com/north-face-grey-hoodie-mens-northfaceh">north face grey hoodie mens</a> <a href="http://www.lmcgroep.com/nike-mercurial-superfly-rosa-grau-schuhej">nike mercurial superfly rosa grau</a> <a href="http://www.nowaitnails.com/herre-nike-air-max-thea-bl%C3%A5-gr%C3%A5-skoh">herre nike air max thea bl氓 gr氓</a> <a href="http://www.xmrujo.com/nike-zoom-winflo-3-rouge-noir-chaussuresh">nike zoom winflo 3 rouge noir</a> <a href="http://www.sevenguard.com/memphis-redbirds-cap-hatl">memphis redbirds cap</a> <a href="http://www.escortsue.com/jordan-future-gamma-bleu-on-feet-chaussuresh">jordan future gamma bleu on feet</a>
biddingstream http://www.biddingstream.com/
prodomfactory
 prodomfactory 2019-04-21 15:38回复
#175
<a href="http://www.retailnav.com/oakley-necessity-polished-black-frame-violet-iridium-lens-sunglassesh">oakley necessity polished black frame violet iridium lens</a> <a href="http://www.merleflugge.com/all-white-notre-dame-hat-hatj">all white notre dame hat</a> <a href="http://www.airfarelinks.com/nike-blazer-high-nero-bianca-scarpej">nike blazer high nero bianca</a> <a href="http://www.vidiyow.com/nike-dunk-sky-high-wei%C3%9F-cool-grau-schuhei">nike dunk sky high wei脽 cool grau</a> <a href="http://www.quiveutdescds.com/converse-l%C3%A6der-sort-herre-skoh">converse l忙der sort herre</a> <a href="http://www.wapkaa.com/wade-davis-jersey-nfli">wade davis jersey</a>
prodomfactory http://www.prodomfactory.com/
bonfanticare
 bonfanticare 2019-04-19 19:30回复
#174
<a href="http://www.ortzproducts.com/air-jordan-retro-5-naranja-hombresta-verde-zapatosk">air jordan retro 5 naranja hombresta verde</a> <a href="http://www.cooterscamera.com/coach-hc8232f-sunglasses-coachh">coach hc8232f sunglasses</a> <a href="http://www.marjalfun.com/mens-nike-flyknit-racer-gold-green-shoesj">mens nike flyknit racer gold green</a> <a href="http://www.alecsblog.com/adidas-forum-mid-gr%C3%A5-lyser%C3%B8d-skoq">adidas forum mid gr氓 lyser酶d</a> <a href="http://www.troudumonde.com/nike-air-max-griffey-1-bleu-chaussuresl">nike air max griffey 1 bleu</a> <a href="http://www.smilesdrdavid.com/femmes-nike-roshe-run-slip-oranger-violet-chaussuresq">femmes nike roshe run slip oranger violet</a>
bonfanticare http://www.bonfanticare.com/
gcpoloclub
 gcpoloclub 2019-04-19 12:43回复
#173
<a href="http://www.ptsbarwinslow.com/nike-air-max-95-white-blue-shoesk">nike air max 95 white blue</a> <a href="http://www.sarhallafk.com/nike-blazer-mid-lr-neutral-gr%C3%A5-svart-obuvi">nike blazer mid lr neutral gr氓 svart</a> <a href="http://www.philippikus.com/nike-free-run-2-trainers-svart-obuvk">nike free run 2 trainers svart</a> <a href="http://www.pngoilgas.com/hvit-l%C3%A6r-converse-obuvi">hvit l忙r converse</a> <a href="http://www.goficarwash.com/nike-hypervenom-phantom-ii-fg-negro-fluorescent-verde-zapatosl">nike hypervenom phantom ii fg negro fluorescent verde</a> <a href="http://www.getairtijuana.com/nike-huarache-nero-bianca-maschio-scarpeh">nike huarache nero bianca maschio</a>
gcpoloclub http://www.gcpoloclub.com/
laflammesinc
 laflammesinc 2019-04-19 12:09回复
#172
<a href="http://www.setusoftware.com/nike-air-max-2013-gr%C3%B8nn-svart-obuvk">nike air max 2013 gr酶nn svart</a> <a href="http://www.shopteamcubs.com/nike-tiempo-legend-iv-hvit-bl%C3%A5-obuvi">nike tiempo legend iv hvit bl氓</a> <a href="http://www.danieldavinci.com/adidas-zapatos-plain-blanco-zapatosl">adidas zapatos plain blanco</a> <a href="http://www.lovirani.com/adidas-springblade-solyce-bianca-argento-scarpeh">adidas springblade solyce bianca argento</a> <a href="http://www.rosebites.com/kobe-10-point-jade-white-grey-shoesk">kobe 10 point jade white grey</a> <a href="http://www.webrushllc.com/oakley-radar-path-sunglasses-review-sunglassesh">oakley radar path sunglasses review</a>
laflammesinc http://www.laflammesinc.com/
sfcigar
 sfcigar 2019-04-17 20:09回复
#171
<a href="http://www.taiwanmeinet.com/nike-zoom-winflo-3-kvinners-hvit-himmelen-bl%C3%A5-obuvi">nike zoom winflo 3 kvinners hvit himmelen bl氓</a> <a href="http://www.talkwithgirl.com/adidas-eqt-boost-svart-obuvk">adidas eqt boost svart</a> <a href="http://www.mamatale.com/nike-air-max-2015-kvinners-rosa-obuvi">nike air max 2015 kvinners rosa</a> <a href="http://www.strongtale.com/hombres-hombres-nike-air-max-2016-gris-negro-verde-zapatosl">hombres hombres nike air max 2016 gris negro verde</a> <a href="http://www.iranpayamco.com/nike-tiempo-legend-fg-nero-scarpeh">nike tiempo legend fg nero</a> <a href="http://www.hapeid.com/air-jordan-retro-2-red-black-shoesk">air jordan retro 2 red black</a>
sfcigar http://www.sfcigar.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸