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

迷津渡口

越感到迷惑 越接近真理

emlog MVC解构11--Model模型之User_Model

模型User_Model用于用户管理。

属性:

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

方法表:

方法注释
function __construct()构造方法,新建内部数据库连接对象
function getUsers($page=null)获取用户信息列表,$page为页码,返回包含用户信息列表的数组
function getOneUser($uid)获取单个用户信息,$uid为用户ID,返回此用户信息的数组
function updateUser($userData,$uid)更新某个用户的信息,$userData为包含用户信息的数组,$uid为用户ID
function addUser($login,$password,$role,$ischeck)添加用户,$login为登录名,$password为登录密码,$role为用户身份,$ischeck为是否通过审核
function deleteUser($uid)删除用户,先将此用户发表的日志和微语转交给管理员,再删除用户,$uid为用户ID
function isUserExist($login,$uid='')判断用户名是否存在,$login为用户名,$uid为用户ID,为兼容更新作者资料时用户名未变更的情况
function isNicknameExist($nickname,$uid='')判断用户昵称是否存在,$nickname为用户昵称,$uid为用户ID,兼容更新作者资料时用户昵称未变更的情况
function getUserNum()获取用户数量


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

清空信息
关闭评论
lifeonfilms
 lifeonfilms 59 分钟前回复
#127
<a href="http://www.findatrans.com/under-armour-curry-one-negro-verde-zapatosk">under armour curry one negro verde</a> <a href="http://www.isabellerigal.com/womens-north-face-half-zip-hoodie-northfaceh">womens north face half zip hoodie</a> <a href="http://www.esnafkocaeli.com/nike-kobe-9-high-gr%C3%BCn-wei%C3%9F-schuhej">nike kobe 9 high gr眉n wei脽</a> <a href="http://www.dkdjabar.com/nike-zoom-structure-20-kvinders-sort-gul-skoh">nike zoom structure 20 kvinders sort gul</a> <a href="http://www.jamiecirillo.com/nike-huarache-utility-bleu-blanc-chaussuresh">nike huarache utility bleu blanc</a> <a href="http://www.xpostshopx.com/boston-celtics-new-era-2018-nba-basic-59fifty-cap-hatl">boston celtics new era 2018 nba basic 59fifty cap</a>
lifeonfilms http://www.lifeonfilms.com/
squidsforkids
 squidsforkids 约 21 小时前回复
#126
<a href="http://www.lumalender.com/elite-matt-prater-youth-jersey-denver-broncos-5-alternate-navy-blue-nflb">elite matt prater youth jersey denver broncos 5 alternate navy blue</a> <a href="http://www.bkgutters.com/bon-march%C3%A9-air-jordan-melo-femmes-jaune-sportsb">bon march茅 air jordan melo femmes jaune</a> <a href="http://www.getawayoffer.com/kobe-10-christmas-grinch-trainersf">kobe 10 christmas grinch</a> <a href="http://www.busrockerz.com/new-arrival-adidas-shoes-skor">new arrival adidas shoes</a> <a href="http://www.prismbuffalo.com/tom-brady-embroidered-jersey-nflr">tom brady embroidered jersey</a> <a href="http://www.damimiyy.com/oakland-raiders-15-michael-crabtree-olive-2017-salute-to-service-limited-jersey-nflv">oakland raiders 15 michael crabtree olive 2017 salute to service limited jersey</a>
squidsforkids http://www.squidsforkids.com/
pitcrewcooks
 pitcrewcooks 2019-03-19 07:30回复
#125
<a href="http://www.jessiebridges.com/adidas-flyers-27-ron-hextall-purple-authentic-fights-cancer-stitched-nhl-jersey-nflz">adidas flyers 27 ron hextall purple authentic fights cancer stitched nhl jersey</a> <a href="http://www.salecarvao.com/nike-kd-noir-orange-obuve">nike kd noir orange</a> <a href="http://www.tiresbg.com/kd-9-wolf-gr%C3%A5-huaraches-scarped">kd 9 wolf gr氓 huaraches</a> <a href="http://www.tracyrn.com/nike-kobe-viola-nero-kurpesc">nike kobe viola nero</a> <a href="http://www.blockmgt.com/nike-mens-shilique-calhoun-limited-green-jersey-oakland-raiders-nfl-91-salute-to-service-tank-top-nflr">nike mens shilique calhoun limited green jersey oakland raiders nfl 91 salute to service tank top</a> <a href="http://www.clgfamilies.com/air-jordan-retro-2-wei%C3%9F-gold-butyg">air jordan retro 2 wei脽 gold</a>
[url=http://www.pitcrewcooks.com/]pitcrewcooks[/url]
extrasklepik
 extrasklepik 2019-03-19 03:59回复
#124
<a href="http://www.alpigap.com/jordan-6-noir-laces-butya">jordan 6 noir laces</a> <a href="http://www.dinerwareslo.com/zx-flux-scarpe-nps-chaussurese">zx flux scarpe nps</a> <a href="http://www.eskortpu.com/adidas-ultra-boost-wei%C3%9F-uncaged-butya">adidas ultra boost wei脽 uncaged</a> <a href="http://www.maribrairie.com/air-jordan-son-of-mars-gul-oransje-schuhef">air jordan son of mars gul oransje</a> <a href="http://www.myfaccia.com/ralph-lauren-tees-azul-rosado-polou">ralph lauren tees azul rosado</a> <a href="http://www.noteablepost.com/nike-lebron-11-elite-university-r%C3%B8d-chaussuresa">nike lebron 11 elite university r酶d</a>
extrasklepik http://www.extrasklepik.com/
moreheaddotts
 moreheaddotts 2019-03-18 19:19回复
#123
<a href="http://www.priakurus.com/nike-air-max-1-essential-gr%C3%B8nn-obuvk">nike air max 1 essential gr酶nn</a> <a href="http://www.batatastudio.com/nike-free-tr-fit-5.0-maschio-verde-gituttio-grigio-scarpei">nike free tr fit 5.0 maschio verde gituttio grigio</a> <a href="http://www.kahawellness.com/nike-air-force-1-low-amarillo-zapatosh">nike air force 1 low amarillo</a> <a href="http://www.metabolifes.com/nike-lebron-soldier-10-alle-bl%C3%A5-skok">nike lebron soldier 10 alle bl氓</a> <a href="http://www.breconpharm.com/nike-lebron-xiii-menn-university-r%C3%B8d-hvit-svart-laser-oransje-obuvi">nike lebron xiii menn university r酶d hvit svart laser oransje</a> <a href="http://www.bagintaiwan.com/nike-air-max-tavas-blanco-and-gris-zapatosl">nike air max tavas blanco and gris</a>
moreheaddotts http://www.moreheaddotts.com/
classmedya
 classmedya 2019-03-18 03:43回复
#122
<a href="http://www.matrawildlife.com/nike-roshe-run-high-cut-mujer-negro-watermelon-rojo-zapatosh">nike roshe run high cut mujer negro watermelon rojo</a> <a href="http://www.hiyawigs.com/air-max-nike-thea-blanco-zapatosk">air max nike thea blanco</a> <a href="http://www.fidgefingers.com/north-face-womens-3-in-1-coat-northfaceh">north face womens 3 in 1 coat</a> <a href="http://www.lintvan.com/nike-air-presto-grau-schwarz-schuhek">nike air presto grau schwarz</a> <a href="http://www.pubgdust.com/nike-free-trainer-5.0-hvid-and-s%C3%B8lv-skoi">nike free trainer 5.0 hvid and s酶lv</a> <a href="http://www.ahtantalya.com/nike-hypervenom-bleu-noir-chaussuresh">nike hypervenom bleu noir</a>
classmedya http://www.classmedya.com/
typecomment
 typecomment 2019-03-17 06:31回复
#121
<a href="http://www.shrinetalk.com/dam%C3%A4nner-nike-shox-2016-grau-gold-butya">dam盲nner nike shox 2016 grau gold</a> <a href="http://www.konyakbs.com/nike-lebron-12-oro-gituttio-rosso-butya">nike lebron 12 oro gituttio rosso</a> <a href="http://www.cheezhayama.com/air-max-95-wei%C3%9F-wei%C3%9F-schwarz-obuvd">air max 95 wei脽 wei脽 schwarz</a> <a href="http://www.eagleswingair.com/air-jordan-retro-3-ni%C3%B1os-oro-gris-scarpec">air jordan retro 3 ni帽os oro gris</a> <a href="http://www.alchemaerie.com/jordan-super-fly-2-svart-oransje-schuhef">jordan super fly 2 svart oransje</a> <a href="http://www.eyecovet.com/air-jordan-12-low-max-naranja-juice-scarpef">air jordan 12 low max naranja juice</a>
typecomment http://www.typecomment.com/
veskopetrov
 veskopetrov 2019-03-17 04:36回复
#120
<a href="http://www.sousoushop.com/dam%C3%A4nner-nike-kd-8-gold-gr%C3%BCn-schuhej">dam盲nner nike kd 8 gold gr眉n</a> <a href="http://www.rcfitcamp.com/nike-air-yeezy-2-sort-himmelbl%C3%A5-skoh">nike air yeezy 2 sort himmelbl氓</a> <a href="http://www.milajerdchat.com/nike-air-max-90-em-oranger-noir-chaussuresh">nike air max 90 em oranger noir</a> <a href="http://www.girisweb.com/seattle-seahawks-on-field-hat-hatl">seattle seahawks on field hat</a> <a href="http://www.abcmovieplot.com/nike-lebron-ambassador-9-bleu-ciel-blanc-chaussuresh">nike lebron ambassador 9 bleu ciel blanc</a> <a href="http://www.oldhalliwell.com/air-jordan-retro-14-rosado-gamma-azul-zapatosp">air jordan retro 14 rosado gamma azul</a>
veskopetrov http://www.veskopetrov.com/
pcwolftech
 pcwolftech 2019-03-16 23:20回复
#119
<a href="http://www.femmedeguinee.com/nike-air-jordan-1-retro-red-skou">nike air jordan 1 retro red</a> <a href="http://www.autosasart.com/under-armour-micro-g-torch-hommes-jaune-shoesa">under armour micro g torch hommes jaune</a> <a href="http://www.pcwolftech.com/golden-state-warriors-beanie-hatr">golden state warriors beanie</a> <a href="http://www.poteputi.com/air-max-1-flyknit-flyknit-men-trainersa">air max 1 flyknit flyknit men</a> <a href="http://www.minsonphoto.com/billig-nike-free-1.0-herre-s%C3%B8lv-skoe">billig nike free 1.0 herre s酶lv</a> <a href="http://www.sandeneuhofer.com/achat-nike-cortez-vintage-skoc">achat nike cortez vintage</a>
pcwolftech http://www.pcwolftech.com/
roomwhiz
 roomwhiz 2019-03-16 16:16回复
#118
<a href="http://www.theislandbody.com/dallas-stars-away-jersey-nfli">dallas stars away jersey</a> <a href="http://www.zululeads.com/air-jordan-future-kvinders-sort-lyser%C3%B8d-skoq">air jordan future kvinders sort lyser酶d</a> <a href="http://www.notmyrichie.com/mens-polo-zip-sweater-poloh">mens polo zip sweater</a> <a href="http://www.mintyschoice.com/mens-air-yeezy-ii-2-sp-max-90-blue-red-shoesi">mens air yeezy ii 2 sp max 90 blue red</a> <a href="http://www.mamapjblog.com/nike-flyknit-roshe-run-red-green-shoesk">nike flyknit roshe run red green</a> <a href="http://www.pdfunicorn.com/kvinners-nike-air-max-1-gul-gr%C3%A5-obuvq">kvinners nike air max 1 gul gr氓</a>
roomwhiz http://www.roomwhiz.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸