protected function _filterSubjects($state, $subjects, $frame, $flags) {
    $rval = new stdClass();
    sort($subjects);
    foreach($subjects as $id) {
      $subject = $state->subjects->{$id};
      if($this->_filterSubject($subject, $frame, $flags)) {
        $rval->{$id} = $subject;
      }
    }
    return $rval;
  }
protected function _filterSubjects($state, $subjects, $frame, $flags) {
    $rval = new stdClass();
    sort($subjects);
    foreach($subjects as $id) {
      $subject = $state->subjects->{$id};
      if($this->_filterSubject($subject, $frame, $flags)) {
        $rval->{$id} = $subject;
      }
    }
    return $rval;
  }
protected function _filterSubjects ( $ state , $ subjects , $ frame , $ flags ) { $ rval = new stdClass ( ) ; sort ( $ subjects ) ; foreach ( $ subjects as $ id ) { $ subject = $ state -> subjects -> { $ id } ; if ( $ this -> _filterSubject ( $ subject , $ frame , $ flags ) ) { $ rval -> { $ id } = $ subject ; } } return $ rval ; }
Returns a map of all of the subjects that match a parsed frame.

@param stdClass $state the current framing state.
@param array $subjects the set of subjects to filter.
@param stdClass $frame the parsed frame.
@param assoc $flags the frame flags.

@return stdClass all of the matched subjects.
Returns a map of all of the subjects that match a parsed frame .