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

清空信息
关闭评论
anilmm
 anilmm 约 4 小时前回复
#272
<a href="http://www.firestonelive.com/parajumpers-vest-men-and-women-parajumpersa">parajumpers vest men and women</a> <a href="http://www.joyhaughton.com/moncler-vest-mens-khakis-on-sale-monclera">moncler vest mens khakis on sale</a> <a href="http://www.witorodriguez.com/kvinders-asics-gel-noosa-tri-7-r%C3%B8d-guld-chaussuresb">kvinders asics gel noosa tri 7 r酶d guld</a> <a href="http://www.nantotel.com/adidas-protator-absolion-david-beckham-zapatosj">adidas protator absolion david beckham</a> <a href="http://www.insideoutelle.com/yeezy-350-boost-v2-sort-guy-obuvf">yeezy 350 boost v2 sort guy</a> <a href="http://www.montyclarkpi.com/pandora-bracelet-and-charms-deal-quiz-pandoraj">pandora bracelet and charms deal quiz</a>
anilmm http://www.anilmm.com/
insideoutelle
 insideoutelle 约 6 小时前回复
#271
<a href="http://www.studiovivalex.com/nike-blazer-noir-noir-kurpese">nike blazer noir noir</a> <a href="http://www.italikacink.com/pandora-dangle-bunny-charm-wallpapers-pandoral">pandora dangle bunny charm wallpapers</a> <a href="http://www.atomaugers.com/christian-louboutin-rantus-orlato-flat-louboutine">christian louboutin rantus orlato flat</a> <a href="http://www.nerecords.com/hermes-bag-leather-instructions-hermesc">hermes bag leather instructions</a> <a href="http://www.amuntech.com/kvinners-nike-kd-8-r%C3%B8d-oransje-footg">kvinners nike kd 8 r酶d oransje</a> <a href="http://www.miraklegal.com/men-parajumpers-jacket-guess-parajumpersa">men parajumpers jacket guess</a>
insideoutelle http://www.insideoutelle.com/
cambriapets
 cambriapets 约 9 小时前回复
#270
<a href="http://www.mauradutra.com/canada-goose-citadel-parka-blue-valley-canadagooseb">canada goose citadel parka blue valley</a> <a href="http://www.lucagerini.com/air-jordan-retro-11-orange-gr%C3%B8n-kurpesk">air jordan retro 11 orange gr酶n</a> <a href="http://www.daphaltd.com/pandora-two-tone-flower-charms-ingredients-pandoraf">pandora two tone flower charms ingredients</a> <a href="http://www.cagdasair.com/louboutin-boots-online-malaysia-louboutine">louboutin boots online malaysia</a> <a href="http://www.gaellebodyart.com/hermes-kelly-cut-vert-vertigo-hermesc">hermes kelly cut vert vertigo</a> <a href="http://www.revisionbacs.com/air-jordan-18-svart-and-bl%C3%A5-for-salg-yakima-footm">air jordan 18 svart and bl氓 for salg yakima</a>
cambriapets http://www.cambriapets.com/
demuslimah
 demuslimah 约 12 小时前回复
#269
<a href="http://www.rlhomestaging.com/nike-mercurial-vapor-x-10-skos">nike mercurial vapor x 10</a> <a href="http://www.advitil.com/nike-internationalist-rougedit-wow-scarpea">nike internationalist rougedit wow</a> <a href="http://www.primumlive.com/ralph-lauren-jackets-gr%C3%B8nn-brun-polos">ralph lauren jackets gr酶nn brun</a> <a href="http://www.tioneo.com/hermes-wallet-making-hermesg">hermes wallet making</a> <a href="http://www.valeriewiener.com/nike-air-max-90-premium-mens-green-gold-trainersd">nike air max 90 premium mens green gold</a> <a href="http://www.cinderstorm.com/adidas-zx-750-armada-blanco-amarillo-obuvc">adidas zx 750 armada blanco amarillo</a>
demuslimah http://www.demuslimah.com/
padcrashin
 padcrashin 约 16 小时前回复
#268
<a href="http://www.cohenhypnosis.com/air-jordan-retro-30-gituttio-arancia-butyg">air jordan retro 30 gituttio arancia</a> <a href="http://www.paulabandura.com/nike-dunk-ni%C3%B1os-zapatos-negro-p%C3%BArpura-butya">nike dunk ni帽os zapatos negro p煤rpura</a> <a href="http://www.legalguards.com/mackage-hooded-puffer-coat-long-mackaged">mackage hooded puffer coat long</a> <a href="http://www.lafuette.com/womens-nike-epic-react-flyknit-blue-canada-shoeso">womens nike epic react flyknit blue canada</a> <a href="http://www.parsoniidrs.com/nfl-mens-nike-atlanta-falcons-14-justin-hardy-red-name-number-pullover-hoodie-nflt">nfl mens nike atlanta falcons 14 justin hardy red name number pullover hoodie</a> <a href="http://www.ehomeoclinic.com/limited-nike-navy-blue-mens-maliek-collins-jersey-nfl-96-dallas-cowboys-therma-long-sleeve-nflu">limited nike navy blue mens maliek collins jersey nfl 96 dallas cowboys therma long sleeve</a>
[url=http://www.padcrashin.com/]padcrashin[/url]
thermilax
 thermilax 2019-12-14 14:31回复
#267
<a href="http://www.noumoles.com/zx-flux-schwarz-silber-schuheb">zx flux schwarz silber</a> <a href="http://www.alannacaldas.com/maschio-ralph-lauren-bianca-polo-t-shirt-with-crew-neck-polou">maschio ralph lauren bianca polo t shirt with crew neck</a> <a href="http://www.texastribal.com/hermes-scarf-authenticate-key-scarfb">hermes scarf authenticate key</a> <a href="http://www.tinystorygame.com/nike-dam%C3%A4nner-free-4.0-flyknit-laufen-schuh-wei%C3%9F-chaussuresb">nike dam盲nner free 4.0 flyknit laufen schuh wei脽</a> <a href="http://www.lifeofeighty.com/ray-ban-aviator-mirror-rb3025-sunglassesr">ray ban aviator mirror rb3025</a> <a href="http://www.lmbaidu.com/north-face-vest-measurements-for-sale-northfacea">north face vest measurements for sale</a>
thermilax http://www.thermilax.com/
mykariera
 mykariera 2019-12-13 21:52回复
#266
<a href="http://www.chainmgr.com/adidas-harden-vol-1-gr%C3%BCn-rosa-scarpea">adidas harden vol 1 gr眉n rosa</a> <a href="http://www.cinselpaketin.com/womens-alfred-morris-limited-jersey-camo-nike-2018-salute-to-service-nfl-san-francisco-49ers-46-nflt">womens alfred morris limited jersey camo nike 2018 salute to service nfl san francisco 49ers 46</a> <a href="http://www.glassurchin.com/mens-new-balance-574-2015-purple-footd">mens new balance 574 2015 purple</a> <a href="http://www.kuaconsulting.com/air-max-90-premium-trainer-noir-chaussuresf">air max 90 premium trainer noir</a> <a href="http://www.mileikanea.com/air-jordan-6-galaxy-jordan-8-sportsc">air jordan 6 galaxy jordan 8</a> <a href="http://www.opticgambetta.com/san-francisco-giants-bp-hat-part-hatb">san francisco giants bp hat part</a>
mykariera http://www.mykariera.com/
rentalsmm
 rentalsmm 2019-12-13 14:52回复
#265
<a href="http://www.mauradutra.com/canada-goose-citadel-parka-blue-valley-canadagooseb">canada goose citadel parka blue valley</a> <a href="http://www.lucagerini.com/air-jordan-retro-11-orange-gr%C3%B8n-kurpesk">air jordan retro 11 orange gr酶n</a> <a href="http://www.daphaltd.com/pandora-two-tone-flower-charms-ingredients-pandoraf">pandora two tone flower charms ingredients</a> <a href="http://www.cagdasair.com/louboutin-boots-online-malaysia-louboutine">louboutin boots online malaysia</a> <a href="http://www.gaellebodyart.com/hermes-kelly-cut-vert-vertigo-hermesc">hermes kelly cut vert vertigo</a> <a href="http://www.revisionbacs.com/air-jordan-18-svart-and-bl%C3%A5-for-salg-yakima-footm">air jordan 18 svart and bl氓 for salg yakima</a>
rentalsmm http://www.rentalsmm.com/
kelownariders
 kelownariders 2019-12-13 07:15回复
#264
<a href="http://www.texomatruss.com/canada-goose-kensington-parka-kopen-jumper-canadagooseb">canada goose kensington parka kopen jumper</a> <a href="http://www.askjms.com/kvinders-nike-kyrie-1-lilla-himmelbl%C3%A5-kurpesk">kvinders nike kyrie 1 lilla himmelbl氓</a> <a href="http://www.dublinraces.com/pandora-bracelet-spacers-uk-uk-pandoraf">pandora bracelet spacers uk uk</a> <a href="http://www.denteraserinc.com/louboutin-ankle-booties-camel-louboutine">louboutin ankle booties camel</a> <a href="http://www.bearclawfire.com/hermes-evelyne-gm-review-essay-hermesc">hermes evelyne gm review essay</a> <a href="http://www.broadbandgeek.com/ua-curry-3-argento-rosso-footm">ua curry 3 argento rosso</a>
kelownariders http://www.kelownariders.com/
iwantavenue
 iwantavenue 2019-12-10 15:59回复
#263
<a href="http://www.designnewsnow.com/nike-huarache-blanco-azul-rosado-butyg">nike huarache blanco azul rosado</a> <a href="http://www.baronvelocity.com/parajumpers-damen-marilyn-2017-parajumpersb">parajumpers damen marilyn 2017</a> <a href="http://www.diannewright.com/canada-goose-expedition-parka-dame-zone-canadagooseb">canada goose expedition parka dame zone</a> <a href="http://www.itsmykarate.com/nike-lebron-12-kvinders-himmelbl%C3%A5-kurpesk">nike lebron 12 kvinders himmelbl氓</a> <a href="http://www.proseccoshow.com/pandora-dangle-charms-vogue-runway-pandoraf">pandora dangle charms vogue runway</a> <a href="http://www.automatiktor.com/christian-louboutin-bridal-australia-quotes-louboutine">christian louboutin bridal australia quotes</a>
iwantavenue http://www.iwantavenue.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸