symfony API

sfNumberValidator Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to API menu

1.0 API OpenSearch


You are currently browsing the symfony API for the 1.0 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.

sfNumberValidator verifies a parameter is a number and allows you to apply


sfNumberValidator  <  sfValidator

Method Summary

  • bool execute(, )
    Executes this validator.
  • bool initialize(, )
    Initializes this validator.

Methods inherited from sfValidator

execute , getContext , getParameter , getParameterHolder , hasParameter , initialize , setParameter

Method Details

  • (bool) execute (, ) Browse code

    Executes this validator.

    returns true, if this validator executes successfully, otherwise false

  • (bool) initialize (, ) Browse code

    Initializes this validator.

    returns true, if initialization completes successfully, otherwise false