kukrik/qcubed-filefinder
Composer 安装命令:
composer require kukrik/qcubed-filefinder
包简介
QCubed-4 plugin for FileFinder
关键字:
README 文档
README
FileFinder for QCubed-4
Simple Examples: Options for Implementing Pop-Up Windows
At times, you may require a quick and effortless method to search for and retrieve data from another PHP page through a pop-up window, among other functionalities.
This straightforward Filefinder plugin serves this purpose aptly and can be utilized repeatedly. To achieve this, you'll need to add one or more buttons that can trigger a pop-up according to your requirements. Each pop-up can be tailored to accommodate various datasets or other content.
These plugins work starting from PHP version 8.3+.
Here's a simple example: Begin by specifying the data-popup button: 'some name tag'; at this stage, configuration is necessary:
$button = new Bs\Button($this);
$button-> etc...
$button->setDataAttribute('popup', 'some name tag');
$object = new Q\Plugin\FileFinder($this);
$object->PopupUrl = "finder.php"; // Any php page
$object->TargetPopupName = 'some name tag';
The default width and height of the popup window are set to 95%. It is possible to adjust the dimensions of the popup to be smaller. For this, you can use the following syntax:
$object->PopupWidth = '...%';
$object->PopupHeight = '...%';
Replace '...%' with the desired percentage value for width and height respectively.
In this example, we are using finder.php, which is based on FileHandler: https://github.com/kukrik/qcubed-filemanager.
Finder is placed in a popup window, where you can make some configurations as desired.
If you want to limit file selection by file type, you can change the default values of LockedDocuments and LockedImages to true on lines 168-169 in finder.php.
Additionally, you need to go to line 2659 to view and configure it. Please follow the instructions and recommendations provided there.
// Here, the "files" table needs to be updated to indicate that the selected image(s) are now locked.
// If this is not done, the file manager will not provide accurate information about whether
// the files are free or not. This is to prevent accidentally deleting files that are in use by others.
$objFiles = Files::loadById($arrSome["data-id"]);
$objFiles->setLockedFile($objFiles->getLockedFile() + 1);
//$objFiles->save();
// First, you need to create your own table with your chosen name and define the necessary columns.
// However, here you must definitely add a column named "file_id", where you will pull the "id" value
// from the "files" table.
//
//This is necessary so that when you need to delete from your table, you can release the lock in
// the "files" table based on the "file_id". This ensures that FileHandler reflects the correct
// information to other users.
// $objSome = new Some();
// $objSome->setFileId($arrSome["data-id"]);
// $objSome->.... etc;
// $objSome->.... etc;
If you have not previously installed QCubed Bootstrap and twitter bootstrap, run the following actions on the command line of your main installation directory by Composer:
composer require twbs/bootstrap v3.3.7
and
composer require kukrik/qcubed-filefinder
composer require qcubed-4/plugin-bootstrap
kukrik/qcubed-filefinder 适用场景与选型建议
kukrik/qcubed-filefinder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 03 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「qcubed」 「filefinder」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kukrik/qcubed-filefinder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kukrik/qcubed-filefinder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kukrik/qcubed-filefinder 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
QCubed-4 application starter template
QCubed wrappers for Twitter Bootstrap.
Installer plugin for the QCubed-4 framework.
QCubed wrappers for Twitter Bootstrap. Specifically for QCubed v4 and above.
QCubed plugin for CKEditor.
QCubed text box plugin that validates U.S. phone numbers.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-11
