Guest User

Untitled

a guest
Jul 17th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. class Model_Users
  2. {
  3. protected $tb_users;
  4. protected $tb_profiles;
  5.  
  6. public function __construct()
  7. {
  8. $this->tb_users = new Zend_Db_Table('users');
  9. $this->tb_profiles = new Zend_Db_Table('profiles');
  10. }
  11.  
  12. public function fetchAll($where="")
  13. {
  14. $rows = $this->tb_users->fetchAll(
  15. $this->tb_users->select()
  16. ->where($where)
  17. ->order("rating DESC")
  18. );
  19. return $rows;
  20. }
  21. }
Add Comment
Please, Sign In to add comment