aboutsummaryrefslogtreecommitdiff
path: root/classes/iterators/IsisNormalItemFilterIterator.php
blob: e59d7c66e57aec21df3bcab0a7fbff33329ed992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

/**
 * Isis normal subfield iterator. Filter out special subfields.
 */
class IsisNormalItemFilterIterator extends FilterIterator {

  /**
   * Filter out special subfields.
   */
  public function accept()
  {
    $field = $this->getInnerIterator()->field;
    $class = $this->getInnerIterator()->class;
    $item  = $this->getInnerIterator()->current();
    return !$class->specialItem($field, $item);
  }
}