Source of file EventRegisterControllerGroupExtension.php
Size: 0,849 Bytes - Last Modified: 2021-12-23T10:11:33+00:00
/var/www/docs.ssmods.com/process/src/code/extensions/EventRegisterControllerGroupExtension.php
1234567891011121314151617181920212223242526272829 | <?php class EventRegisterControllerGroupExtension extends Extension { private static $allowed_actions = array( 'group' ); public function group($request) { $forcewrite = $request->isPOST(); // start rego if form is submitting $registration = $this->owner->getCurrentRegistration($forcewrite); $nexturl = $this->owner->Link('review'); $backurl = $this->owner->canReview() ? $nexturl : $this->owner->Link(); $record = new Page(array( 'ID' => -1, 'Title' => $this->owner->Title, 'ParentID' => $this->owner->ID, 'URLSegment' => 'register/group', 'BackURL' => $backurl, 'NextURL' => $this->owner->Link('review') )); $controller = new RegistrationGroupController($record, $registration); $this->owner->extend("updateRegistrationGroupController", $controller, $record, $registration); return $controller; } } |