From 2eadfb22912d94e76a479b694070735fbb0298f1 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 10 Apr 2016 12:13:42 -0400 Subject: Refactor ProjectActivity model to use Filter and Formatter interface --- app/Filter/ProjectActivityTaskTitleFilter.php | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 app/Filter/ProjectActivityTaskTitleFilter.php (limited to 'app/Filter/ProjectActivityTaskTitleFilter.php') diff --git a/app/Filter/ProjectActivityTaskTitleFilter.php b/app/Filter/ProjectActivityTaskTitleFilter.php new file mode 100644 index 00000000..ed3f36d6 --- /dev/null +++ b/app/Filter/ProjectActivityTaskTitleFilter.php @@ -0,0 +1,38 @@ +query->ilike(Task::TABLE.'.title', '%'.$this->value.'%'); + return $this; + } +} -- cgit v1.2.3