Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class IDX_AdvancedSearch_Query extends IDX_Query_Abstract
- {
- protected $fields = array(
- 'minBaths',
- 'minBedrooms',
- 'maxPrice' => array(
- 'type' => 'int',
- 'onTypeFault' => function( $value ){
- return (int)$value;
- },
- 'validation' => function( $value ){
- if( $valueMeetsConditions )
- return $value;
- return false;
- },
- 'onValidationFault' => function( $value ){
- return ltrim($value, '$');
- }
- )
- )
- }
Add Comment
Please, Sign In to add comment