1
0
mirror of https://github.com/pierre42100/ComunicAPI synced 2025-07-07 18:42:53 +00:00

Implemented Movie object

This commit is contained in:
Pierre
2018-04-22 08:53:12 +02:00
parent 604fddd38c
commit 0bec88bda4
4 changed files with 76 additions and 48 deletions

@ -528,6 +528,10 @@ class postsController {
//Update visibility level
$infos['visibility_level'] = $this::VISIBILITY_LEVELS_API[$infos['visibility_level']];
//Turn movie into API entry (if any)
if($infos["video_infos"] != null)
$infos["video_infos"] = MoviesController::MovieToAPI($infos["video_infos"]);
//Turn survey into API entry (if any)
if($infos["data_survey"] != null)
$infos["data_survey"] = SurveysController::SurveyToAPI($infos["data_survey"]);