/** * Display the notify tab. * @param $args array * @param $request PKPRequest * @return JSONMessage JSON object */ function viewNotify($args, $request) { $this->setupTemplate($request); import('controllers.informationCenter.form.InformationCenterNotifyForm'); $notifyForm = new InformationCenterNotifyForm($this->submissionFile->getFileId(), ASSOC_TYPE_SUBMISSION_FILE); $notifyForm->initData(); return new JSONMessage(true, $notifyForm->fetch($request)); }
/** * Display the notify tab. * @param $args array * @param $request PKPRequest */ function viewNotify($args, &$request) { $itemId = Request::getUserVar('itemId'); $this->setupTemplate(); import('controllers.informationCenter.form.InformationCenterNotifyForm'); $notifyForm = new InformationCenterNotifyForm(ASSOC_TYPE_MONOGRAPH_FILE, $itemId); $notifyForm->initData(); $json = new JSON('true', $notifyForm->fetch($request)); return $json->getString(); }
/** * Display the notify tab. * @param $args array * @param $request PKPRequest */ function viewNotify($args, &$request) { $this->setupTemplate(); import('controllers.informationCenter.form.InformationCenterNotifyForm'); $notifyForm = new InformationCenterNotifyForm(ASSOC_TYPE_MONOGRAPH_FILE, $this->monographFile->getFileId()); $notifyForm->initData(); $json = new JSON(true, $notifyForm->fetch($request)); return $json->getString(); }
/** * Display the notify tab. * @param $args array * @param $request PKPRequest */ function viewNotify($args, &$request) { // Fetch the monograph to display information about $monograph =& $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH); $this->setupTemplate(); import('controllers.informationCenter.form.InformationCenterNotifyForm'); $notifyForm = new InformationCenterNotifyForm($monograph->getId(), ASSOC_TYPE_MONOGRAPH); $notifyForm->initData(); $json = new JSON('true', $notifyForm->fetch($request)); return $json->getString(); }