|
|
@@ -11,10 +11,32 @@ class ReminderStore implements ReminderStoreInterface |
|
|
|
$this->query = $query; |
|
|
|
} |
|
|
|
|
|
|
|
public function get($params = []) |
|
|
|
public function get($params = [], $query = null) |
|
|
|
{ |
|
|
|
$query = $this->query->create(); |
|
|
|
$query->filterBase($params) ; |
|
|
|
if(is_null($query)) { |
|
|
|
$query = $this->query->create(); |
|
|
|
} |
|
|
|
|
|
|
|
$query->filterDone(); |
|
|
|
|
|
|
|
if(array_key_exists('user', $params)) { |
|
|
|
$query->filterUser($params['user']); |
|
|
|
} |
|
|
|
|
|
|
|
if(array_key_exists('crudAction', $params)) { |
|
|
|
$query->filterCrudAction($params['crudAction']); |
|
|
|
} |
|
|
|
|
|
|
|
if(array_key_exists('crudControllerFqcn', $params)) { |
|
|
|
$query->filterCrudControllerFqcn($params['crudControllerFqcn']); |
|
|
|
} |
|
|
|
|
|
|
|
if(array_key_exists('entityId', $params)) { |
|
|
|
$query->filterEntityId($params['entityId']); |
|
|
|
} |
|
|
|
|
|
|
|
$query->orderDefault(); |
|
|
|
|
|
|
|
return $query->find(); |
|
|
|
} |
|
|
|
|