symfony API

sfFormFilterPropel Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

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

sfFormFilterPropel is the base class for filter forms based on Propel objects.

Inheritence

sfFormFilterPropel  <  sfFormFilter

Method Summary

Methods inherited from sfFormFilter

Method Details

  • addBooleanCriteria () Browse code

  • addDateCriteria () Browse code

  • addForeignKeyCriteria () Browse code

  • addNumberCriteria () Browse code

  • addTextCriteria () Browse code

  • (Criteria) buildCriteria () Browse code

    Builds a Propel Criteria based on the passed values.

    returns A Propel Criteria object

  • camelize () Browse code

  • (Criteria) doBuildCriteria ($values) Browse code

    Builds a Propel Criteria with processed values.


    Overload this method instead of {@link buildCriteria()} to avoid running
    {@link processValues()} multiple times.

  • getColName () Browse code

  • (Criteria) getCriteria () Browse code

    Returns a Propel Criteria based on the current values form the form.

    returns A Propel Criteria object

  • (array) getFields () Browse code

    Returns the fields and their filter type.

    returns An array of fields with their filter type

  • (string) getModelName () Browse code

    Returns the current model name.

    returns The model class name

  • (array) processValues () Browse code

    Processes cleaned up values with user defined methods.


    To process a value before it is used by the buildCriteria() method,
    you need to define an convertXXXValue() method where XXX is the PHP name
    of the column.

    The method must return the processed value or false to remove the value
    from the array of cleaned up values.

    returns An array of cleaned up values processed by the user defined methods