aplia / oworfilter
提供对“对象关系”和“对象关系”数据类型的扩展属性过滤器。
v1.0.3
2021-12-10 09:51 UTC
Requires
- php: >=5.3
- composer/composer: >=1.0
This package is auto-updated.
Last update: 2024-09-10 15:56:42 UTC
README
OWOrFilter(OpenWide对象关系过滤器)为“对象关系”和“对象关系”数据类型提供扩展属性过滤器。此过滤器支持基本的逻辑运算符。它可以与单个关系和多关系一起使用。
使用方法
此过滤器类似于任何扩展属性过滤器,如内容/列表获取函数的文档中所述: http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/content/Fetch-functions/list
安装
使用Composer安装
composer require aplia/oworfilter
示例
单个object_id,单个属性
{def $nodeList = fetch(content, list, hash( parent_node_id, XX, extended_attribute_filter, hash( 'id', 'orfilter', 'params', array( array('classe1/attribut1', 61) ) ) ) )}
多个object_ids,单个属性
{def $nodeList = fetch(content, list, hash( 'parent_node_id', XX, 'extended_attribute_filter', hash( 'id', 'orfilter', 'params', array( array('classe1/attribut1', array(70, 71), 'or') ) ) ) )}
多个object_ids,多个属性
{def $nodeList = fetch(content, list, hash( 'parent_node_id', XX, 'extended_attribute_filter', hash( 'id', 'orfilter', 'params', array( 'or', array('classe1/attribut1', array(70, 71), 'or'), array('classe2/attribut2', array(80, 81), 'and') ) ) ) )}