Now MetaDataFilter takess also regexp. For example whern you want to
extract metadata if you would filter like this: --filter="Article" would extract also for "ArticleItems" (article_items table). Now you can use --filter="Article$" if you want only that table (articl)
This commit is contained in:
parent
8118dddc6a
commit
6963bf6028
@ -76,9 +76,7 @@ class MetadataFilter extends \FilterIterator implements \Countable
|
|||||||
$metadata = $it->current();
|
$metadata = $it->current();
|
||||||
|
|
||||||
foreach ($this->filter as $filter) {
|
foreach ($this->filter as $filter) {
|
||||||
if (strpos($metadata->name, $filter) !== false) {
|
if(preg_match("#$filter#",$metadata->name,$m)) return true;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user