/** * An action to manually add a new stage participant * @param $args array * @param $request PKPRequest * @return string Serialized JSON object */ function addStageParticipant($args, &$request) { // Identify the submission Id $monographId = $request->getUserVar('monographId'); // Form handling import('controllers.grid.users.stageParticipant.form.StageParticipantForm'); $stageParticipantForm = new StageParticipantForm($monographId); $stageParticipantForm->initData(); $json = new JSON('true', $stageParticipantForm->fetch($request)); return $json->getString(); }
/** * An action to manually add a new stage participant * @param $args array * @param $request PKPRequest * @return string Serialized JSON object */ function addStageParticipant($args, &$request) { // Render the stage participant form. // FIXME: We only need a form class here to gain access to the // form vocab. Make the form vocab globally available and implement this // form as a simple template, see #6505. import('controllers.grid.users.stageParticipant.form.StageParticipantForm'); $stageParticipantForm = new StageParticipantForm($this->getMonograph(), $this->getStageId()); $json = new JSON(true, $stageParticipantForm->fetch($request)); return $json->getString(); }