/** * Set the language specific (dutch and english) parameters of an activity * * @param type $activity * @param type $params * @param type $dutch * @param type $english */ protected function setLanguageSpecificParameters(ActivityModel $activity, $params, $dutch, $english) { if ($dutch) { $activity->setName($params['name']); $activity->setLocation($params['location']); $activity->setCosts($params['costs']); $activity->setDescription($params['description']); } if ($english) { $activity->setNameEn($params['nameEn']); $activity->setLocationEn($params['locationEn']); $activity->setCostsEn($params['costsEn']); $activity->setDescriptionEn($params['descriptionEn']); } }