Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
AnnouncementTypeForm.inc.php
1 <?php
16 import('lib.pkp.classes.manager.form.PKPAnnouncementTypeForm');
17 
20  var $pressId;
21 
27  function AnnouncementTypeForm($pressId, $announcementTypeId = null) {
28  parent::PKPAnnouncementTypeForm($announcementTypeId);
29  $this->pressId = $pressId;
30  }
31 
32 
33  //
34  // Extended methods from Form
35  //
40  function fetch($request) {
41  $templateMgr = TemplateManager::getManager($request);
42  $templateMgr->assign('typeId', $this->typeId);
43  return parent::fetch($request, 'controllers/grid/announcements/form/announcementTypeForm.tpl');
44  }
45 
46  //
47  // Private helper methdos.
48  //
53  function _setAnnouncementTypeAssocId($announcementType) {
55  $announcementType->setAssocType(ASSOC_TYPE_PRESS);
56  $announcementType->setAssocId($pressId);
57  }
58 }
59 
60 ?>
AnnouncementTypeForm($pressId, $announcementTypeId=null)
_setAnnouncementTypeAssocId($announcementType)
Form for to read/create/edit announcement types.
Form for manager to create/edit announcement types.