$repo->get($form_id)]; } public function post($args){ $label = null; $isInternal = null; extract($args); /** @var \database\repo\formation $repo */ $repo = Repo::getRepo("formation"); return ['idFormation' => $repo->create($label,$isInternal)]; } public function put($args){ $idFormation = null; $label = null; $isInternal = null; extract($args); /** @var \database\repo\formation $repo */ $repo = Repo::getRepo("formation"); return ['success' => $repo->update($idFormation,$label,$isInternal)]; } public function delete($args){ $idFormation = null; extract($args); /** @var \database\repo\formation $repo */ $repo = Repo::getRepo("formation"); return ['success' => $repo->delete($idFormation)]; } }