Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function fetchAll($params = array())
- {
- $params = $params->toArray();
- $options = array();
- if (isset($params['page'])) {
- $options['options']['pageSize'] = $this->pageSize;
- $options['options']['page'] = $params['page'];
- }
- foreach ($params['filter'] as $paramKey => $param) {
- switch ($paramKey) {
- case 'projectname':
- $options['where']['projectname'] = $param;
- break;
- case 'username':
- $options['where']['username'] = $param;
- break;
- case 'email':
- $options['where']['email'] = $param;
- break;
- default:
- $options['filter'][$paramKey] = $param;
- }
- }
- return $this->mapper->fetchAll($options);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement