symfony API

sfFormFilterPropel Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

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

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

Method Summary

Method Details

  • addBooleanCriteria ($criteria, $field, $value) Browse code

    $criteria
    $field
    $value

  • addDateCriteria ($criteria, $field, $values) Browse code

    $criteria
    $field
    $values

  • addForeignKeyCriteria ($criteria, $field, $value) Browse code

    $criteria
    $field
    $value

  • addNumberCriteria ($criteria, $field, $values) Browse code

    $criteria
    $field
    $values

  • addTextCriteria ($criteria, $field, $values) Browse code

    $criteria
    $field
    $values

  • (Criteria) buildCriteria ($values) Browse code

    $values An array of parameters to build the Criteria object

    Builds a Propel Criteria based on the passed values.

    returns A Propel Criteria object

  • camelize ($text) Browse code

    $text

  • getColName ($field) Browse code

    $field

  • (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 ($values) Browse code

    $values An array of cleaned up values to process

    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