lotos2512/array_search_model
Composer 安装命令:
composer require lotos2512/array_search_model
包简介
search model by array
README 文档
README
This library by search data from array
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require lotos2512/array_search_model dev-master
Base usage
$data = ChildArraySearchModel::find() ->where(['in', 'array_field', array]) ->where(['===', 'array_field_or_callback_with_result_can_be_array_or_array_value', equal_value]) ->where(['regex', array_field_or_callback_with_result_can_be_array_or_array_value, equal_value|equal_value|equal_value]) ->orderBy(callback_with_sort_function_result) ->limit(int_value) ->offset(int_value) ->indexBy('array_field') ->all();
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-18