NewNoteForm::fetch PHP Method

fetch() public method

public fetch ( $request )
    function fetch($request)
    {
        $templateMgr = TemplateManager::getManager($request);
        $noteDao = DAORegistry::getDAO('NoteDAO');
        $templateMgr->assign(array('notes' => $noteDao->getByAssoc($this->getAssocType(), $this->getAssocId()), 'submitNoteText' => $this->getSubmitNoteLocaleKey(), 'newNoteFormTemplate' => $this->getNewNoteFormTemplate()));
        return parent::fetch($request);
    }

Usage Example

示例#1
0
 /**
  * @copydoc NewNoteForm::fetch()
  */
 function fetch($request)
 {
     $templateMgr = TemplateManager::getManager($request);
     $templateMgr->assign('linkParams', $this->_actionArgs);
     $templateMgr->assign('showEarlierEntries', false);
     $templateMgr->assign('signoffId', $this->signoffId);
     $templateMgr->assign('symbolic', $this->_symbolic);
     $templateMgr->assign('stageId', $this->_stageId);
     $templateMgr->assign('submissionId', $this->_submissionId);
     return parent::fetch($request);
 }
All Usage Examples Of NewNoteForm::fetch