Download the PHP package signify-nz/silverstripe-searchfilter-arraylist without Composer
On this page you can find all versions of the php package signify-nz/silverstripe-searchfilter-arraylist. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download signify-nz/silverstripe-searchfilter-arraylist
More information about signify-nz/silverstripe-searchfilter-arraylist
Files in signify-nz/silverstripe-searchfilter-arraylist
Package silverstripe-searchfilter-arraylist
Short Description Provides an ArrayList subclass that supports SearchFilter filtering syntax.
License BSD-3-Clause
Homepage https://github.com/signify-nz/silverstripe-searchfilter-arraylist
Informations about the package silverstripe-searchfilter-arraylist
Silverstripe SearchFilter ArrayList
Provides an ArrayList subclass that can be filtered using SearchFilters.
This module is obsolete as of Silverstripe CMS 5.1.0, as the functionality it provides is now in core. Please see this comment for more information.
Installation
Install via composer:
If you want to, you can replace (most) instances of ArrayList with this implementation via yaml config:
Beware however that some code - even potentially within Silverstripe itself - may use the new keyword instead of relying on the Injector when instantiating new ArrayLists. In those cases the original ArrayList class will be used.
Usage
When calling find, filter, filterAny, exclude, or excludeAny on a SearchFilterableArrayList, you can use SearchFilter syntax - the same as if you were calling those methods on a DataList.
All of the SearchFilters and modifiers documented in Silverstripe's SearchFilter documentation should be supported - if you find that isn't the case, please raise an issue or, better yet, a pull request.
If you have implemented your own SearchFilter, you can add support for it via an Extension class - see the extension documentation.
All versions of silverstripe-searchfilter-arraylist with dependencies
silverstripe/vendor-plugin Version ^1.0 || ^2.0
silverstripe/framework Version ^4.0 || ^5.0
