ArticleGalleyForm::fetch PHP Method

fetch() public method

Display the form.
public fetch ( $request )
    function fetch($request)
    {
        $journal = $request->getJournal();
        $templateMgr = TemplateManager::getManager($request);
        if ($this->_articleGalley) {
            $templateMgr->assign(array('representationId' => $this->_articleGalley->getId(), 'articleGalley' => $this->_articleGalley, 'articleGalleyFile' => $this->_articleGalley->getFile()));
        }
        $templateMgr->assign(array('supportedLocales' => $journal->getSupportedLocaleNames(), 'submissionId' => $this->_submission->getId()));
        return parent::fetch($request);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Update a format
  * @param $args array
  * @param $request PKPRequest
  * @return JSONMessage JSON object
  */
 function updateFormat($args, $request)
 {
     $submission = $this->getSubmission();
     $representationDao = Application::getRepresentationDAO();
     $representation = $representationDao->getById($request->getUserVar('representationId'), $submission->getId());
     import('controllers.grid.articleGalleys.form.ArticleGalleyForm');
     $articleGalleyForm = new ArticleGalleyForm($request, $submission, $representation);
     $articleGalleyForm->readInputData();
     if ($articleGalleyForm->validate($request)) {
         $articleGalleyForm->execute($request);
         return DAO::getDataChangedEvent();
     }
     return new JSONMessage(true, $articleGalleyForm->fetch($request));
 }
All Usage Examples Of ArticleGalleyForm::fetch