Guest User

Untitled

a guest
Apr 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Having to initialize it with a Phreezer connection doesnt
  5. * feel right, but this is just a mock-up.
  6. **/
  7.  
  8. $parameters = array(
  9. "is_admin" => true,
  10. "created_date__lte" => date("Y-m-d H:i:s", mktime(23, 59, 59, 12, 31, 2007)),
  11. "roles__in" => array(
  12. $admin_type_object, // represents RoleType record
  13. $privileged_merchant_type_object // represents RoleType record
  14. );
  15. );
  16.  
  17. $customers = User::filter($phreezer, $parameters);
  18.  
  19. ?>
Add Comment
Please, Sign In to add comment