Set desired query pattern. Fluent Method
MapFilter can be configured using both constructor and specialized fluent methods setPattern() and setQuery(): $pattern = new MapFilter_NullPattern (); $query = Array ( 'attr0' => 'value', 'attr1' => 'value' ); // Configure filter using constructor. $filter0 = new MapFilter ( $pattern, $query ); // Create empty filter and configure it using fluent interface. $filter1 = new MapFilter (); $filter1->setPattern ( $pattern )->setQuery ( $query ); // Optional combination of both can be used as well. $filter2 = new MapFilter ( $pattern ); $filter2->setQuery ( $query );
Reimplemented from MapFilter_Interface. |
$ git clone git://github.com/olivergondza/MapFilter