symfony API

sfFilterChain Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.1 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.1 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfFilterChain manages registered filters for a specific context.

Method Summary

  • execute()
    Executes the next filter in this chain.
  • boolean hasFilter($class)
    Returns true if the filter chain contains a filter of a given class.
  • loadConfiguration($actionInstance)
    Loads filters configuration for a given action instance.
  • register($filter)
    Registers a filter with this chain.

Method Details

  • execute () Browse code

    Executes the next filter in this chain.

  • (boolean) hasFilter ($class) Browse code

    $class The class name of the filter

    Returns true if the filter chain contains a filter of a given class.

    returns true if the filter exists, false otherwise

  • loadConfiguration ($actionInstance) Browse code

    $actionInstance A sfComponent instance

    Loads filters configuration for a given action instance.

  • register ($filter) Browse code

    $filter A sfFilter implementation instance.

    Registers a filter with this chain.