aboutsummaryrefslogtreecommitdiff
path: root/classes/IsisNormalSubfieldFilterIterator.php
blob: 98494a69b925da056b5a628b95c94fbafdc9db53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
  }
}