1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

class Model_User extends Model {
	
	public function list_users(array $data, $limit, $offset) {
		
		return DB::select(call_user_func_array(array($this, 'list_users'), $data))
					->from('users')
					->limit($limit)
					->offset($offset)
					->execute()
					->as_array();
		
	}
	
}