Check a filter for a match

@param \Gems\Agenda\EpisodeOfCare $episode
@return boolean
421919
public function matchEpisode(EpisodeOfCare $episode)
    {
        foreach ($episode->getAppointments() as $appointment) {
            if ($appointment instanceof \Gems_Agenda_Appointment) {
                if ($this->matchAppointment($appointment)) {
                    return true;
                }
            }
        }

        return false;
    }
983088
def episode(number)
      episodes.detect { |epi| epi.index.to_i == number.to_i }
    end
909371
protected function shouldBeFiltered($key)
	{
		if (isset($this->filterIndex[$key]))
		{
			return $this->filterIndex[$key];
		}

		return $this->autoFilter;
	}
664203
public function isFeatureMatch(FeatureNode $feature)
    {
        return $this->filterMinLine <= $feature->getLine()
            && $this->filterMaxLine >= $feature->getLine();
    }
273891
public function removeEpisode(\Oktolab\MediaBundle\Entity\Episode $episodes)
    {
        $this->episodes->removeElement($episodes);
        $episodes->setSeries(null);
    }
881739
public function hasShared($abstract, $checkMode = null)
  {
    $exists = isset($this->_instances[$abstract]);
    return !$exists || $checkMode === null ? $exists : $this->_instances[$abstract]['mode'] === $checkMode;
  }
1334336
public function check( $obj )
    {
        foreach( $this->findFilterComponents as $findFilterComponent ) {
            if( $findFilterComponent->check($obj) ) {
                return true;
            }
        }
        return false;
    }
382632
public function isFeatureMatch(FeatureNode $feature)
    {
        foreach ($this->filterPaths as $path) {
            if (0 === strpos(realpath($feature->getFile()), $path)) {
                return true;
            }
        }

        return false;
    }
691376
public function isFiltered()
    {
        if (!$this->adapter instanceof FilteredAdapter) {
            return false;
        }

        $filteredAdapter = $this->adapter;
        $filteredAdapter->isFiltered();
    }
993991
function has_filter( $tag, $function_to_check = false ) {
            $this->_logger->entrance( $tag );

            return has_filter( $this->get_action_tag( $tag ), $function_to_check );
        }
245862
private function getReviewEpisode($top_area)
    {
        $episode = $top_area->find('div div', 1)->plaintext;
        $episode = str_replace(['episodes seen', 'chapters read'], '', $episode);

        return trim($episode);
    }
831160
public function isForBundleItem($oArticle)
    {
        if ($this->oxdiscount__oxaddsumtype->value != 'itm') {
            return false;
        }

        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sQ = "select 1 from oxobject2discount where oxdiscountid=" . $oDb->quote($this->getId());
        $sQ .= $this->_getProductCheckQuery($oArticle);
        if (!($blOk = (bool) $oDb->getOne($sQ))) {
            // additional checks for amounts and other dependencies
            $blOk = $this->_checkForArticleCategories($oArticle);
        }

        return $blOk;
    }
637917
public function hasFilterType(string $provider, string $code): bool
    {
        return !empty($this->filterTypes[$provider][$code]);
    }
581226
protected boolean isMatch(String[] words, String filter)
        {
        for (String word : words)
            {
            int len = filter.length();
            if (word.regionMatches(ignoreCase, 0, filter, 0, len))
                {
                return true;
                }
            }
        return false;
        }
264245
public function addEpisode(\Oktolab\MediaBundle\Entity\Episode $episodes)
    {
        $this->episodes[] = $episodes;
        return $this;
    }
301542
public function getSpriteWebvttForEpisode($episode, $player_type = "jwplayer")
    {
        $this->calculateInterval($episode);
        switch ($player_type) {
            case 'jwplayer':
                return $this->getSpriteWebvttForJwPlayer($episode);
                break;

            default:
                return $this->getSpriteWebvttForJwPlayer($episode);
                break;
        }
    }
335761
public function hasFilter(string $field): bool
    {
        foreach ($this->filters as $filter) {
            if ($filter->hasFilter($field)) {
                return true;
            }
        }

        return false;
    }