Guest User

Untitled

a guest
Jul 20th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <?php
  2.  
  3. class IDX_AdvancedSearch_Query extends IDX_Query_Abstract
  4. {
  5. protected $fields = array(
  6. 'minBaths',
  7. 'minBedrooms',
  8. 'maxPrice' => array(
  9. 'type' => 'int',
  10. 'onTypeFault' => function( $value ){
  11. return (int)$value;
  12. },
  13. 'validation' => function( $value ){
  14. if( $valueMeetsConditions )
  15. return $value;
  16. return false;
  17. },
  18. 'onValidationFault' => function( $value ){
  19. return ltrim($value, '$');
  20. }
  21. )
  22. )
  23. }
Add Comment
Please, Sign In to add comment