Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
RegistrationForm.inc.php
1 <?php
2 
16 import('lib.pkp.classes.user.form.PKPRegistrationForm');
17 
22  function RegistrationForm($site, $existingUser = false) {
23  parent::PKPRegistrationForm($site, $existingUser);
24  }
25 
29  function execute($request) {
30  parent::execute($request);
31 
32  // By default, self-registering readers will receive
33  // context updates. (The double set is here to prevent a
34  // duplicate insert error msg if there was a notification entry
35  // left over from a previous role.)
36  if (isset($allowedRoles['reader']) && $this->getData($allowedRoles['reader'])) {
37  $notificationStatusDao = DAORegistry::getDAO('NotificationStatusDAO');
38  $notificationStatusDao->setPressNotifications($context->getId(), $userId, false);
39  $notificationStatusDao->setPressNotifications($context->getId(), $userId, true);
40  }
41  }
42 }
43 
44 ?>
static & getDAO($name, $dbconn=null)
getData($key)
Definition: Form.inc.php:210
Form for user registration.
Form for user registration.
RegistrationForm($site, $existingUser=false)