symfony API

sfFormFilterDoctrine 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:

sfFormFilterDoctrine is the base class for filter forms based on Doctrine objects.

Inheritence

sfFormFilterDoctrine  <  sfFormFilter

Method Summary

Methods inherited from sfFormFilter

Method Details

  • addBooleanQuery () Browse code

  • addDateQuery () Browse code

  • addEnumQuery () Browse code

  • addForeignKeyQuery () Browse code

  • addNumberQuery () Browse code

  • addTextQuery () Browse code

  • (Query) buildQuery () Browse code

    Builds a Doctrine Query based on the passed values.

    returns A Doctrine Query object

  • camelize () Browse code

  • (Doctrine_Query) doBuildQuery ($values) Browse code

    Builds a Doctrine query with processed values.


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

  • getColName () Browse code

  • getFieldName () Browse code

  • (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

  • (Query) getQuery () Browse code

    Returns a Doctrine Query based on the current values form the form.

    returns A Doctrine Query object

  • (string) getRelatedModelName ($alias) Browse code

    $alias A relation alias

    Returns the name of the related model.

    throws InvalidArgumentException If no relation with the supplied alias exists on the current model

  • getTable () Browse code

  • (string) getTableMethod () Browse code

    Get the name of the table method used to retrieve the query object for the filter

  • (array) processValues () Browse code

    Processes cleaned up values with user defined methods.


    To process a value before it is used by the buildQuery() 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

  • setQuery ($query) Browse code

    Sets the query object to use.

  • setTableMethod ($tableMethod) Browse code

    Set the name of the table method used to retrieve the query object for the filter


    The specified method will be passed the query object before any changes
    are made based on incoming parameters.

  • setupInheritance () Browse code

    Used in generated forms when models use inheritance.