symfony API

sfValidator Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.3 version. Switch to:

sfValidatorBase allows you to apply constraints to user entered parameters.

Method Summary

  • bool execute(, )
    Executes this validator.
  • sfContext getContext()
    Retrieves the current application context.
  • mixed getParameter(, )
    Retrieves a parameter from the validator.
  • sfParameterHolder getParameterHolder()
    Retrieves the parameters from the validator.
  • boolean hasParameter()
    Indicates whether or not a parameter exist for the validator.
  • bool initialize(, )
    Initializes this validator.
  • setParameter(, )
    Sets a parameter for the validator.
  • __construct()
    Class constructor.

Method Details

  • (bool) execute (, ) Browse code

    Executes this validator.

    returns true, if this validator executes successfully, otherwise false

  • (sfContext) getContext () Browse code

    Retrieves the current application context.

    returns The current sfContext instance

  • (mixed) getParameter (, ) Browse code

    Retrieves a parameter from the validator.

    returns A parameter value

  • (sfParameterHolder) getParameterHolder () Browse code

    Retrieves the parameters from the validator.

    returns List of parameters

  • (boolean) hasParameter () Browse code

    Indicates whether or not a parameter exist for the validator.

    returns true, if parameter exists, otherwise false

  • (bool) initialize (, ) Browse code

    Initializes this validator.

    returns true, if initialization completes successfully, otherwise false

  • setParameter (, ) Browse code

    Sets a parameter for the validator.

  • __construct () Browse code

    Class constructor.