Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Ananda Theerthan J: "I have been looking for PHP generator for years and now I am happy that I found one. Yes, its the PHP generator for MySQL. I completely rate 10/10 for this product for making life easier. It has lot of features and capabilities especially the CRUD, lookups and data partitioning. I love this product and recommend to others".
Dionys Henzen: "Congratulations! Your MySQL PHP Generator is a great tool, that can save a lot of time and money to a developer! I'll evaluate for sure your software products when I need them. Great job".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

OnPrepareFilterBuilder

This event allows you to setup initial condition for the Filter Builder tool.

 

Signature:

function OnPrepareFilterBuilder(FilterBuilder $filterBuilder,

               FixedKeysArray $columns)

 

Parameters:

$filterBuilder

An instance of the FilterBuilder class.

$columns

An associative array of columns available in the tool.

 

Example

This example shows how to setup initial value for Filter Builder (available live in the Feature Demo).

 

$rootGroup = new FilterGroup(FilterGroupOperator::OPERATOR_AND,

    array(

        new FilterCondition($columns['rating'], 

            FilterConditionOperator::IS_BETWEEN, array(5, 7)),

        new FilterCondition($columns['genre_id'],

            FilterConditionOperator::EQUALS, array(14), array('Fantasy'))

    )

);

$filterBuilder->setFilterComponent($rootGroup);

 



Prev Return to chapter overview Next