static function setPostResource($id_post, $id_resource) { $postdao = new PostDao(); return $postdao->assignResource($id_post, $id_resource); }