Author | Replies |
---|---|
sitesurety | # Posted on November 8, 2014 at 3:30 pm |
ok, i’ve gone through the filter code and it will include any match.. I’ve reversed the loop so that it will do an ‘and’ match (1 or more must be true to be added). Any chance this could be added in a future release as a variable to the function? i.e. Exclusive filter function filterExclusive($args, $case_sensitive = FALSE) { if (!is_array($args)) { // extract the arguments foreach ($this->_items as $set_item) { foreach ($args as $arg) { $m = array(); preg_match ( “/^([\w\-]+)(\#?\=|\#?[\>\<\$\^\*\~\!]=|\#?\>|\#?\<)(.*)$/” , $arg, $m ); if ($m && count($m) == 4) { if ($case_sensitive) { $f = $set_item->f($fn); $fields = array(); $fields[] = $f; foreach ($fields as $f) { if ($include) { $nv = 0; if ($case_sensitive) { if (is_numeric($fv)) { if (is_numeric($val)) { // Check each item for match individually switch ($op) { } // endif $include } // endforeach } } if ($include) { } } |
MasterPress 1.4.1 is now available
27th May 2024
This update addresses backwards compatibility issues that were introduced in the previous update. There were some edge cases where PHP 7 had issues and it didn’t work at all on PHP 5.6.We have now changed it so that the PHP 8 compatibility changes will now only affect PHP 8 and will be more thorough with…