我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP中的De- /可激活类扩展

i am working on a small CMS and ran over the following issue. We are trying to create de-/activatable plugins, that will give the option to dynamically de- and activate features, like a special registration etc. I wanted to know if there are any best practices to accomplish this. Our first thought was to disable the extends of a php class if the module/plugin itself isnt active, but this seemed kinda dirty and we had no idea how to implement it.

I hope that someone can help us out.

近期文章

  • 从android发送文本和表情符号到PHP?
  • 将数组从js文件获取到php中,然后编码为json
  • 如何解析从curl网站收到的网站内容
  • php csv imap下载
  • Google Apps Email Audit API:POST请求,用于创建用户邮箱的监视器
  • HHVM:获取失败调用MemcachedSessionModule :: gc()的后果是什么
  • ZF2:pthreads - 传递PDO
  • 在php中填充select标签
  • 在Magento中获取外部会话
  • 如何使用定义为服务的表单将数组数据映射到Symfony2实体?
  • 上传文件时的MIME类型
  • jquery很久以前的服务器
  • Android Studio 将数据发送到 MySql 数据库的问题
  • 与php混淆角度
  • 连接三个表的动态数据透视表
  • Laravel 5 Query Builder不返回任何数据
  • 在YII中使用ffmpeg从mp4视频中获取图像
  • 如何使用PHPCBF一次修复一个问题?
  • 从AGI调用PHP函数不起作用
  • PHP pthreads:Thread :: start()是否会返回FALSE?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华