diff options
Diffstat (limited to 'classes/IsisNormalSubfieldFilterIterator.php')
-rw-r--r-- | classes/IsisNormalSubfieldFilterIterator.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/IsisNormalSubfieldFilterIterator.php b/classes/IsisNormalSubfieldFilterIterator.php new file mode 100644 index 0000000..98494a6 --- /dev/null +++ b/classes/IsisNormalSubfieldFilterIterator.php @@ -0,0 +1,14 @@ +<?php + +/** + * Isis normal subfield iterator. Filter out special subfields. + */ +class IsisNormalSubfieldFilterIterator extends FilterIterator { + public function accept() + { + $field = $this->getInnerIterator()->field; + $class = $this->getInnerIterator()->class; + $subfield = $this->getInnerIterator()->current(); + return !$class->specialSubfield($field, $subfield); + } +} |