Exemple #1
0
 /**
  * Display form to create/edit an email.
  * @param $args array optional, if set the first parameter is the key of the email template to edit
  */
 function editEmail($args = array())
 {
     $this->setupTemplate(true);
     $press =& Request::getPress();
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->append('pageHierarchy', array(Request::url(null, 'manager', 'emails'), 'manager.emails'));
     $emailKey = !isset($args) || empty($args) ? null : $args[0];
     import('classes.manager.form.EmailTemplateForm');
     $emailTemplateForm = new EmailTemplateForm($emailKey, $press);
     $emailTemplateForm->initData();
     $emailTemplateForm->display();
 }
Exemple #2
0
 /**
  * Display form to create/edit an email.
  * @param $args array if set the first parameter is the key of the email template to edit
  * @param $request PKPRequest
  */
 function editEmail($args, &$request)
 {
     $this->validate();
     $this->setupTemplate(true);
     $journal =& $request->getJournal();
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->append('pageHierarchy', array($request->url(null, 'manager', 'emails'), 'manager.emails'));
     $emailKey = !isset($args) || empty($args) ? null : $args[0];
     import('classes.manager.form.EmailTemplateForm');
     $emailTemplateForm = new EmailTemplateForm($emailKey, $journal);
     $emailTemplateForm->initData();
     $emailTemplateForm->display();
 }