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

迷津渡口

越感到迷惑 越接近真理

emlog MVC解构13--Model模型之Tag_Model

模型Tag_Model作用为标签管理。

属性:

private $db内部数据库连接对象,用于存取标签的数据库数据

方法表:

方法注释
function __construct()构造方法,新建内部数据库连接对象
function getTag($blogId='')
获取标签,参数$blogId为日志ID,返回包含此日志标签数据的数组
function getOneTag($tagId)通过标签ID获取单个标签信息,$tagId为标签ID,返回包含此标签信息的数组
function getTagByName($tagName)通过标签名称获取包含此标签的日志ID的字符串,单篇日志则字符串为此日志ID,多篇日志则日志ID用逗号分隔,$tagName为标签名称
function getTagById($tagId)通过标签ID获取包含此标签的日志ID的字符串,单篇日志则字符串为此日志ID,多篇日志则日志ID用逗号分隔,$tagId为标签ID
function addTag($tagStr,$blogId)
添加标签,通过空格或者,或者,空格组合分隔标签,$tagStr为包含多个标签的字符串,$blogId为日志ID

function updateTag($tagStr,$blogId)

更新标签,通过空格或者,或者,空格组合分隔标签,$tagStr为包含多个标签的字符串,$blogId为日志ID
function updateTagName($tagId,$tagName)更新标签名称,$tagId为标签ID,$tagName为标签名称
function deleteTag($tagId)删除标签,$tagId为标签ID


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

清空信息
关闭评论
swisshomeas
 swisshomeas 约 12 小时前回复
#105
<a href="http://www.theskifanatic.com/mujeres-air-jordan-retro-11-todas-negro-zapatosk">mujeres air jordan retro 11 todas negro</a> <a href="http://www.bestoftumblr.com/coach-backpack-outlet-online-coachh">coach backpack outlet online</a> <a href="http://www.thehogrider.com/adidas-damian-lillard-grey-black-shoesj">adidas damian lillard grey black</a> <a href="http://www.artpreneure.com/nike-air-max-95-kvinders-gr%C3%B8n-hvid-skoq">nike air max 95 kvinders gr酶n hvid</a> <a href="http://www.thefarmergirl.com/femmes-asics-gel-hyper-33-gris-rouge-chaussuresl">femmes asics gel hyper 33 gris rouge</a> <a href="http://www.shetablink.com/air-jordan-super-fly-rose-oranger-chaussuresq">air jordan super fly rose oranger</a>
swisshomeas http://www.swisshomeas.com/
sidecisions
 sidecisions 2019-03-19 18:39回复
#104
<a href="http://www.flockandvine.com/asics-gel-kinsei-2-schuhe-schwarz-butyd">asics gel kinsei 2 schuhe schwarz</a> <a href="http://www.formasindo.com/nike-cortez-blanco-and-negro-quarter-kurpesc">nike cortez blanco and negro quarter</a> <a href="http://www.covergirlmag.com/jordan-retro-5-sort-herre-schuhea">jordan retro 5 sort herre</a> <a href="http://www.fuckitmusic.com/herre-nike-roshe-run-hyp-gul-guld-kurpesf">herre nike roshe run hyp gul guld</a> <a href="http://www.mpdcir.com/nike-air-max-tailwind-noir-rouge-jordans-chaussuresa">nike air max tailwind noir rouge jordans</a> <a href="http://www.faketheenvy.com/zx-flux-dark-bl%C3%A5-solar-r%C3%B8d-kurpesg">zx flux dark bl氓 solar r酶d</a>
sidecisions http://www.sidecisions.com/
truthtapes
 truthtapes 2019-03-19 12:21回复
#103
<a href="http://www.hinogi.com/mujeres-asics-gel-hyper-33-amarillo-verde-zapatosk">mujeres asics gel hyper 33 amarillo verde</a> <a href="http://www.prontosignsus.com/nike-lunarlon-gris-amarillo-zapatosp">nike lunarlon gris amarillo</a> <a href="http://www.ticahome.com/north-face-half-dome-full-zip-hoodie-mens-northfaceh">north face half dome full zip hoodie mens</a> <a href="http://www.prformusic.com/nike-lunarglide-6-himmelblau-wei%C3%9F-schuhej">nike lunarglide 6 himmelblau wei脽</a> <a href="http://www.tatilblogu.com/kvinders-nike-flyknit-lunar-1-lilla-gr%C3%A5-skoh">kvinders nike flyknit lunar 1 lilla gr氓</a> <a href="http://www.danieladirosa.com/hommes-nike-lunarglide-6-gris-vert-chaussuresh">hommes nike lunarglide 6 gris vert</a>
truthtapes http://www.truthtapes.com/
busancitynews
 busancitynews 2019-03-19 12:07回复
#102
<a href="http://www.ambitionagent.com/adidas-john-wtutti-bhm-code-butyf">adidas john wtutti bhm code</a> <a href="http://www.brensonford.com/femminile-ralph-lauren-pony-verde-marina-militare-poloz">femminile ralph lauren pony verde marina militare</a> <a href="http://www.dutting.com/kvinders-nike-zoom-pegasus-33-gr%C3%A5-bl%C3%A5-chaussuresf">kvinders nike zoom pegasus 33 gr氓 bl氓</a> <a href="http://www.erickasouza.com/new-balance-990-gull-rosa-scarpef">new balance 990 gull rosa</a> <a href="http://www.flyboardbc.com/mens-nike-miami-dolphins-35-walt-aikens-limited-olive-2017-salute-to-service-nfl-jersey-nfls">mens nike miami dolphins 35 walt aikens limited olive 2017 salute to service nfl jersey</a> <a href="http://www.mommypads.com/ralph-lauren-stripe-polo-white-brown-polox">ralph lauren stripe polo white brown</a>
[url=http://www.busancitynews.com/]busancitynews[/url]
bybrettbarner
 bybrettbarner 2019-03-18 05:18回复
#101
<a href="http://www.dbievents.com/nike-air-force-1-oransje-bl%C3%A5-obuvj">nike air force 1 oransje bl氓</a> <a href="http://www.ilankocaeli.com/nike-air-max-flair-2017-femminile-bianca-marina-militare-blu-sporting-scarpel">nike air max flair 2017 femminile bianca marina militare blu sporting</a> <a href="http://www.msignworx.com/nike-air-max-hyperfuse-90-bleu-chaussuresh">nike air max hyperfuse 90 bleu</a> <a href="http://www.dianegrams.com/nike-kwazi-trainers-in-rosso-scarpeh">nike kwazi trainers in rosso</a> <a href="http://www.jobstodayng.com/oakland-athletics-starter-script-pin-stripe-baseball-jersey-from-the-early-90s.-nfli">oakland athletics starter script pin stripe baseball jersey from the early 90s.</a> <a href="http://www.hardcoreboris.com/nike-mercurial-superfly-cr7-tpu-fg-cleats-negro-blanco-zapatosh">nike mercurial superfly cr7 tpu fg cleats negro blanco</a>
bybrettbarner http://www.bybrettbarner.com/
sfdawg
 sfdawg 2019-03-17 12:35回复
#100
<a href="http://www.oriturk.com/adidas-neo-canvas-koral-obuvd">adidas neo canvas koral</a> <a href="http://www.elizabetth.com/jordan-4-schwarz-cem%C3%A4nnert-2017-scarpea">jordan 4 schwarz cem盲nnert 2017</a> <a href="http://www.vinagebarber.com/order-jordan-11-legend-bleu-chaussuresg">order jordan 11 legend bleu</a> <a href="http://www.newhousehelp.com/maschio-nike-shox-turbo-21-arancia-rosa-kurpesf">maschio nike shox turbo 21 arancia rosa</a> <a href="http://www.wakunga.com/lebron-soldier-9-hvid-gul-obuva">lebron soldier 9 hvid gul</a> <a href="http://www.yenrof.com/mennns-ralph-lauren-flag-polo-lilla-beige-polot">mennns ralph lauren flag polo lilla beige</a>
sfdawg http://www.sfdawg.com/
rapamateur
 rapamateur 2019-03-17 00:33回复
#99
<a href="http://www.lakefrontlane.com/nike-air-max-lunar-90-turbo-verde-chaussuresg">nike air max lunar 90 turbo verde</a> <a href="http://www.minickphoto.com/air-jordan-eclipse-schwarz-camo-schwarz-kurpese">air jordan eclipse schwarz camo schwarz</a> <a href="http://www.multinutwraps.com/nike-tanjun-bl%C3%A5-guld-obuva">nike tanjun bl氓 guld</a> <a href="http://www.paulacorley.com/ralph-lauren-light-bl%C3%A5-mennns-sweater-polox">ralph lauren light bl氓 mennns sweater</a> <a href="http://www.catcogroup.com/air-jordan-super-fly-rot-braun-schuhed">air jordan super fly rot braun</a> <a href="http://www.charlesklamut.com/air-jordan-super-fly-v-rosa-gelb-scarpec">air jordan super fly v rosa gelb</a>
rapamateur http://www.rapamateur.com/
swisshomeas
 swisshomeas 2019-03-17 00:30回复
#98
<a href="http://www.findatrans.com/ua-clutchfit-prodigy-or-blanc-chaussuresl">ua clutchfit prodigy or blanc</a> <a href="http://www.isabellerigal.com/dam%C3%A4nner-air-jordan-retro-2-schwarz-gelb-schuhei">dam盲nner air jordan retro 2 schwarz gelb</a> <a href="http://www.esnafkocaeli.com/nike-shox-current-blau-gold-schuheh">nike shox current blau gold</a> <a href="http://www.dkdjabar.com/nike-lebron-13-kvinners-hvit-svart-obuvj">nike lebron 13 kvinners hvit svart</a> <a href="http://www.jamiecirillo.com/adidas-neo-ventilation-gituttio-grigio-scarpek">adidas neo ventilation gituttio grigio</a> <a href="http://www.xpostshopx.com/femmes-air-jordan-retro-12-tout-jaune-chaussuresh">femmes air jordan retro 12 tout jaune</a>
swisshomeas http://www.swisshomeas.com/
akkadixllc
 akkadixllc 2019-03-17 00:12回复
#97
<a href="http://www.blackandjules.com/nike-lunarglide-mennns-8.5-butye">nike lunarglide mennns 8.5</a> <a href="http://www.codepuzzel.com/kvinners-adidas-zx-flux-oransje-kurpesd">kvinners adidas zx flux oransje</a> <a href="http://www.cruisersdiner.com/adidas-zx-flux-schwarz-and-carbon-schuhea">adidas zx flux schwarz and carbon</a> <a href="http://www.drminteriors.com/nike-air-presto-anti-fur-nero-blu-kurpesf">nike air presto anti fur nero blu</a> <a href="http://www.equacart.com/nike-kd-7-floral-for-vente-texas-chaussuresa">nike kd 7 floral for vente texas</a> <a href="http://www.garyfaulconer.com/air-huarache-turbo-gr%C3%B8nn-kitchen-kurpesg">air huarache turbo gr酶nn kitchen</a>
akkadixllc http://www.akkadixllc.com/
lifeonfilms
 lifeonfilms 2019-03-15 10:08回复
#96
<a href="http://www.colintilley.com/nike-air-huarache-light-grey-shoesj">nike air huarache light grey</a> <a href="http://www.xthbgc.com/mk-shoulder-handbags-mkh">mk shoulder handbags</a> <a href="http://www.iberishop.com/nike-flynit-air-max-kvinners-himmelen-bl%C3%A5-oransje-obuvi">nike flynit air max kvinners himmelen bl氓 oransje</a> <a href="http://www.karmacanix.com/nike-lebron-zoom-soldier-8-bianca-scarpej">nike lebron zoom soldier 8 bianca</a> <a href="http://www.tobepartridge.com/adidas-zx-850-green-grey-shoesh">adidas zx 850 green grey</a> <a href="http://www.shopdunks.com/nike-kobe-icon-azul-zapatosp">nike kobe icon azul</a>
lifeonfilms http://www.lifeonfilms.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸