18 $id = (int)$request->get(
'id');
19 $filters = $request->get(
'filter');
28 foreach ($filters as $key => $filter)
30 if (is_array($filter))
32 foreach ($filter as $filterValue)
34 $poolFilter =
new Filter();
36 $poolFilter->setValue($filterValue)
37 ->setKey(strtolower($key))
44 $willExpire = \DateTime::createFromFormat(
'd.m.Y H:i:s',
45 $request->get(
'will_expire'));
49 $willExpire = new \DateTime();
50 $willExpire->setTime(23,59,59);
53 $pool->setMayContainAdultContent(json_decode($request->get(
'may_contain_adult_content')));
54 $pool->setPrivateName($request->get(
'private_name'));
55 $pool->setPublicDescription($request->get(
'public_description'));
56 $pool->setProjectId($request->get(
'project_id'));
57 $pool->setRewardPerAssignment($request->get(
'reward_per_assignment'));
59 $willExpire->format(
'Y-m-d\TH:i:s')