brookinsconsulting/bcxmltemplateoverrideconditions
Composer 安装命令:
composer require brookinsconsulting/bcxmltemplateoverrideconditions
包简介
eZ Publish Legacy kernel override class extension which provides a stable and flexible solution which adds manny more template override.ini match conditions (than supported by default) for ezxml output tag template overrides. Provides for greater template override control!
README 文档
README
This extension implements a solution to provide additional override.ini rules match condition support. Provides an extension based kernel class override for class, 'eZXMLOutputHandler'.
Version
-
The current version of BC XML Template Override Conditions is 0.1.0
-
Last Major update: May 31, 2015
Copyright
-
BC XML Template Override Conditions is copyright 1999 - 2016 Brookins Consulting and 1999 - 2016 eZ Systems AS.
-
See: COPYRIGHT.md for more information on the terms of the copyright and license
License
BC Document Reader is licensed under the GNU General Public License.
The complete license agreement is included in the LICENSE file.
BC Document Reader is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License or at your option a later version.
BC Document Reader is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The GNU GPL gives you the right to use, modify and redistribute BC Document Reader under certain conditions. The GNU GPL license is distributed with the software, see the file doc/LICENSE.
It is also available at http://www.gnu.org/licenses/gpl.txt
You should have received a copy of the GNU General Public License along with BC Document Reader in doc/LICENSE. If not, see http://www.gnu.org/licenses/.
Using BC Document Reader under the terms of the GNU GPL is free (as in freedom).
For more information or questions please contact: license@brookinsconsulting.com
Requirements
The following requirements exists for using BC XML Template Override Conditions extension:
eZ Publish version
-
Make sure you use eZ Publish version 5.x (required) or higher.
-
Designed and tested with eZ Publish Community Project 2014.11
PHP version
- Make sure you have PHP 5.x or higher.
Features
Dependencies
- This solution depends on eZ Publish Legacy and kernel class overrides enabled in config.php
Kernel class override
This solution overrides the following kernel class:
- PHP Class :
eZXMLOutputHandler- Found by default at:kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php
This solution provides the following kernel class override:
- PHP Class :
eZXMLOutputHandler- Found by at:extension/bcxmltemplateoverrideconditions/classes/kerneloverride/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php
Note: This solution requires only one legacy kernel class override of a class that is very stable and not subject to much change (if at all) per release (which is important for maintainability). The class has not been modified or needed a bugfix since late 2012.
Template override rule match conditions added
This solution provides the following ezxmltags template override rule match conditions you can use in your override.ini settings:
-
Provided by default in eZ Publish:
- attribute_identifier
-
Added by bcxmltemplateoverrideconditions:
- object
- class
- class_identifier
- remote_id
- node
- node_remote_id
- depth
- url_alias
- parent_node
- parent_node_remote_id
- parent_object_remote_id
- parent_class
- parent_class_identifier
Note: Additional match conditions can be added by patching the kernel override class and documentation. We support with this solution nearly all possible match conditions (minus state and some other more obscure and rarely used conditions).
Installation
Extension Installation via Composer
Run the following command from your project root to install the extension:
bash$ composer require brookinsconsulting/bcxmltemplateoverrideconditions dev-master;
Extension Activation
Kernel class override extensions are not activated via ini settings. Normal site.ini extension activation settings are not required to use this extension and it's solution.
Enable eZ Publish Kernel Overrides
Kernel class overrides are only able to be used if you add the following to your eZ Publish Legacy config.php configuration file.
cp -va config.php-RECOMMENDED config.php;
# Edit config.php to set 'EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE' to true. It should look like this:
define( 'EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE', true );
Regenerate kernel class override autoloads
Regenerate kernel class override autoloads (Required).
php ./bin/php/ezpgenerateautoloads.php --kernel-override;
Clear the caches
Clear eZ Publish Platform / eZ platfrom caches (Required).
php ./bin/php/ezcache.php --clear-all;
Usage
The solution is configured to work virtually by default once properly installed.
You can use the additional override.ini rules match conditions within your settings to use this solution's features
Troubleshooting
Read the FAQ
Some problems are more common than others. The most common ones are listed in the the doc/FAQ.md
Support
If you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system: http://brookinsconsulting.com/contact
brookinsconsulting/bcxmltemplateoverrideconditions 适用场景与选型建议
brookinsconsulting/bcxmltemplateoverrideconditions 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 05 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「template」 「conditions」 「override」 「ez publish」 「ezxml」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 brookinsconsulting/bcxmltemplateoverrideconditions 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 brookinsconsulting/bcxmltemplateoverrideconditions 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 brookinsconsulting/bcxmltemplateoverrideconditions 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony bundle which allows to override entities by using inheritance
Merge Tailwind CSS classes without style conflicts
conditionalformfields extension for Contao Open Source CMS; Display form fields based on conditionis!
Configuration access helper and environment manager
A Laravel Driver for Lock.
Provides access to current date and time that can be mocked for testing purposes
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-05-31