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

迷津渡口

越感到迷惑 越接近真理

emlog MVC解构18--Model模型之Plugin_Model

模型Plugin_Model是开发插件必须了解的一个模型。

属性表:

属性注释
private $db内部数据库连接对象,用于存取插件数据库数据
private $plugin从本插件根目录到入口文件的路径字符串

方法表:

方法注释
function __construct()构造方法,新建内部数据库连接对象
function activePlugin($plugin)激活插件,更新Option配置,若文件存在,引用插件里面的'插件名_callback.php'文件,调用callback_init()函数,$plugin为从本插件根目录到入口文件的路径字符串,返回是否激活成功
function inactivePlugin($plugin)禁用插件,更新Option配置,若文件存在,引用插件里面的'插件名_callback.php',调用callback_rm()函数
function getPlugins()

获取所有插件列表,未定义插件名称的插件将不予获取

注意:返回全局变量$emPlugins为包含插件相关数据的数组

function getPluginData($pluginFile)

获取插件信息,$pluginFile是从本插件根目录开始到入口文件的路径字符串,返回包含插件信息的数组:

array(

  'Name' => 自定义插件名,

  'Version' => 插件版本,

  'Description' => 插件描述,

  'Url' => 插件说明页面网址,

  'Author' => 开发者,

  'ForEmlog' => 适用emlog版本,

  'AuthorUrl' => 开发者个人网站网址,

  'Setting' => true/false是否存在'插件名_setting.php'插件配置文件,

  'Plugin' => 插件根目录名,

)

注意定义时得这么做:

/*

Plugin Name:自定义插件名

Version:插件版本

Plugin URL:插件说明页面网址

Description:插件说明

ForEmlog:使用emlog版本

Author:开发者

Author URL:开发者个人网站网址

*/

定义时左右的空格将在获取时自动删除


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

清空信息
关闭评论
nike shox cl classic
 nike shox cl classic 约 19 小时前回复
#64
<a href="http://www.akyakurdele.com/nike-womens-al-davis-limited-olivecamo-jersey-oakland-raiders-nfl-82-2017-salute-to-service-nflt">nike womens al davis limited olivecamo jersey oakland raiders nfl 82 2017 salute to service</a> <a href="http://www.biggamebets.com/cavaliers-0-kevin-love-white-2015-all-star-stitched-nba-jersey-nflu">cavaliers 0 kevin love white 2015 all star stitched nba jersey</a> <a href="http://www.ptitbonhomme.com/salomon-fellraiser-bl%C3%A5-l%C3%B8ping-sko-locations-kurpesc">salomon fellraiser bl氓 l酶ping sko locations</a> <a href="http://www.piotrpawlik.com/nike-air-max-1-purple-australia-shoeso">nike air max 1 purple australia</a> <a href="http://www.krabbetor.com/nike-shox-avenue-bleu-ciel-noir-obuvb">nike shox avenue bleu ciel noir</a> <a href="http://www.carroofbags.com/ray-ban-justin-details-ideas-sunglassesd">ray ban justin details ideas</a>
nike shox cl classic http://www.talktomobiles.com/nike-shox-cl-classic-trainerse
magneticduo
 magneticduo 约 20 小时前回复
#63
<a href="http://www.evolutionecig.com/air-jordan-18-lila-braun-obuvc">air jordan 18 lila braun</a> <a href="http://www.georginabauer.com/adidas-panthers-21-vincent-trocheck-camo-authentic-2017-veterans-day-stitched-nhl-jersey-nflw">adidas panthers 21 vincent trocheck camo authentic 2017 veterans day stitched nhl jersey</a> <a href="http://www.bootsoffprice.com/detroit-lions-jason-hanson-jersey-nflv">detroit lions jason hanson jersey</a> <a href="http://www.theprintjobs.com/nike-air-zoom-90-it-dam%C3%A4nner-gelb-skog">nike air zoom 90 it dam盲nner gelb</a> <a href="http://www.dbajournal.com/air-jordan-1-mid-white-canada-skob">air jordan 1 mid white canada</a> <a href="http://www.procomedian.com/nike-hat-penn-state-hatd">nike hat penn state</a>
magneticduo http://www.magneticduo.com/
drjennieward
 drjennieward 2019-02-15 14:36回复
#62
<a href="http://www.mwartsdrama.com/air-jordan-retro-13-lyser%C3%B8d-gr%C3%A5-skoi">air jordan retro 13 lyser酶d gr氓</a> <a href="http://www.meshmotors.com/kvinners-nike-air-max-1-oransje-hvit-obuvq">kvinners nike air max 1 oransje hvit</a> <a href="http://www.aspenmedisys.com/air-jordan-retro-4-womens-red-mint-green-shoesh">air jordan retro 4 womens red mint green</a> <a href="http://www.smartiesland.com/femminile-air-yeezy-ii-2-sp-max-90-blu-nero-scarpei">femminile air yeezy ii 2 sp max 90 blu nero</a> <a href="http://www.emcetolerie.com/nike-lebron-11-elite-wei%C3%9F-schuhej">nike lebron 11 elite wei脽</a> <a href="http://www.lapaktoko.com/dc-united-beanie-hath">dc united beanie</a>
drjennieward http://www.drjennieward.com/
sousoushop
 sousoushop 2019-02-13 21:06回复
#61
<a href="http://www.jupickuplines.com/nike-lebron-witness-rosa-argento-scarpel">nike lebron witness rosa argento</a> <a href="http://www.saleuggboot.com/mens-nike-flynit-air-max-all-blue-shoesj">mens nike flynit air max all blue</a> <a href="http://www.fragmanizletv.com/nike-zoom-vomero-kvinders-r%C3%B8d-s%C3%B8lv-skoi">nike zoom vomero kvinders r酶d s酶lv</a> <a href="http://www.swisshomeas.com/femminile-nike-shox-turbo-21-arancia-blu-scarpeq">femminile nike shox turbo 21 arancia blu</a> <a href="http://www.marinersdiary.com/nike-zoom-pegasus-32-womens-sky-blue-purple-shoesj">nike zoom pegasus 32 womens sky blue purple</a> <a href="http://www.bourseasie.com/black-jet-set-michael-kors-wallet-mkh">black jet set michael kors wallet</a>
sousoushop http://www.sousoushop.com/
cloudsmartin
 cloudsmartin 2019-02-13 13:36回复
#60
<a href="http://www.ntygadget.com/air-jordan-18-black-and-red-edition-sneakere">air jordan 18 black and red edition</a> <a href="http://www.purchasetulsa.com/air-jordan-retro-10-gamma-blau-obuvc">air jordan retro 10 gamma blau</a> <a href="http://www.pennywave.com/roma-10-totti-away-soccer-club-jersey-nflw">roma 10 totti away soccer club jersey</a> <a href="http://www.scoptix.com/2014-15-chelsea-fc-26-terry-home-soccer-shirt-kit-nflv">2014 15 chelsea fc 26 terry home soccer shirt kit</a> <a href="http://www.domodrzwi.com/the-nike-free-trainer-5.0-unc-skog">the nike free trainer 5.0 unc</a> <a href="http://www.magneticduo.com/billig-nike-free-run-kvinners-s%C3%B8lv-skob">billig nike free run kvinners s酶lv</a>
cloudsmartin http://www.cloudsmartin.com/
shanamorgan
 shanamorgan 2019-02-12 02:20回复
#59
<a href="http://www.praiseti.com/adidas-zx-750-blau-gelb-rot-kurpesd">adidas zx 750 blau gelb rot</a> <a href="http://www.cynshq.com/discount-oakley-holbrook-prizm-lenses-sunglassesd">discount oakley holbrook prizm lenses</a> <a href="http://www.fnjcompressor.com/draymond-green-yellow-jersey-nflr">draymond green yellow jersey</a> <a href="http://www.kifftradingco.com/cheap-jordan-bel-air-5-skoa">cheap jordan bel air 5</a> <a href="http://www.phaqtory.com/jordan-12-olympic-cool-gray-sneakerf">jordan 12 olympic cool gray</a> <a href="http://www.cialislaw.com/reebok-hexahte-dark-bl%C3%A5-orange-kurpesa">reebok hexahte dark bl氓 orange</a>
shanamorgan http://www.shanamorgan.com/
baktindo
 baktindo 2019-02-11 16:00回复
#58
<a href="http://www.myoastudies.com/mennns-nike-air-max-90-hyperfuse-gr%C3%B8nn-scarpeg">mennns nike air max 90 hyperfuse gr酶nn</a> <a href="http://www.reganwhimpey.com/kvinders-nike-roshe-run-high-bl%C3%A5-r%C3%B8d-kurpesf">kvinders nike roshe run high bl氓 r酶d</a> <a href="http://www.segurotiendas.com/nike-zoom-ascention-wei%C3%9F-rot-schuheg">nike zoom ascention wei脽 rot</a> <a href="http://www.specpilot.com/nike-roshe-run-poison-verde-palm-trees-prezzo-schuheb">nike roshe run poison verde palm trees prezzo</a> <a href="http://www.texaschambers.com/mennns-nike-free-5.0-bl%C3%A5-hvit-chaussuresd">mennns nike free 5.0 bl氓 hvit</a> <a href="http://www.waughjiujitsu.com/nike-free-run-4.0-svart-rosa-butyg">nike free run 4.0 svart rosa</a>
baktindo http://www.baktindo.com/
scopatore
 scopatore 2019-02-11 12:40回复
#57
<a href="http://www.snifferwalk.com/nike-kobe-9-cielo-azul-naranja-zapatosk">nike kobe 9 cielo azul naranja</a> <a href="http://www.fishmackerel.com/nike-air-max-90-hyperfuse-bl%C3%A5-gr%C3%B8n-skoq">nike air max 90 hyperfuse bl氓 gr酶n</a> <a href="http://www.lauraenergy.com/adidas-zx-850-viola-scarpeh">adidas zx 850 viola</a> <a href="http://www.magellantt.com/buty-nike-air-max-90-pelle-tutti-nero-scarpei">buty nike air max 90 pelle tutti nero</a> <a href="http://www.sportablecrew.com/nike-kaishi-blau-rosa-schuheh">nike kaishi blau rosa</a> <a href="http://www.digisolnc.com/mens-nike-air-max-2017-pink-black-shoesq">mens nike air max 2017 pink black</a>
[url=http://www.scopatore.com/]scopatore[/url]
artpreneure
 artpreneure 2019-02-05 21:12回复
#56
<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>
artpreneure http://www.artpreneure.com/
biereaveyron
 biereaveyron 2019-02-04 11:58回复
#55
<a href="http://www.getawayoffer.com/herren-asics-gel-noosa-tri-7-rosa-silber-obuvc">herren asics gel noosa tri 7 rosa silber</a> <a href="http://www.lbsportsguys.com/air-jordan-13-low-bianca-jordans-scarpea">air jordan 13 low bianca jordans</a> <a href="http://www.thesleeperson.com/billig-nike-shox-classic-scarpef">billig nike shox classic</a> <a href="http://www.ubcfellowship.com/nike-blazer-oransje-gr%C3%B8nn-obuvc">nike blazer oransje gr酶nn</a> <a href="http://www.vipartonline.com/nike-free-run-3-lyser%C3%B8d-hot-punch-scarpea">nike free run 3 lyser酶d hot punch</a> <a href="http://www.zumbajill.com/nike-air-max-hyperfuse-rose-flash-chaussuresg">nike air max hyperfuse rose flash</a>
biereaveyron http://www.biereaveyron.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸