private function addQuestion($questionText, $status) { $questionTable = new Table\QuestionTable(); $id = $questionTable->add($questionText, $status); if ($id) { $questionDto = new DownloadDto\QuestionDto($id, $questionText); $syncController = new SyncController(); $syncController->questionEntry(json_encode($questionDto), INSERT); return $id; } else { } }