diff options
author | Silvio <silvio@devlet.com.br> | 2010-07-15 18:07:01 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-07-15 18:07:01 -0300 |
commit | d83a35ce8486256ff865596066c6dbf23bfe5b18 (patch) | |
tree | adbee4754fedb9f981d9a155974854311906f823 /classes/IsisNormalSubfieldFilterIterator.php | |
parent | 1457718f111ea45705555439e6a732e293cc7bef (diff) | |
download | cinisis-d83a35ce8486256ff865596066c6dbf23bfe5b18.tar.gz cinisis-d83a35ce8486256ff865596066c6dbf23bfe5b18.tar.bz2 |
Adding IsisNormalSubfieldFilterIterator
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); + } +} |