/** * Initialize translate and html objects * * Called from {@link __construct()} as final step of object instantiation. * * @return void */ public function init() { parent::init(); // Tell the system where to return to after a survey has been taken $this->currentUser->setSurveyReturn($this->getRequest()); }
/** * Initialize translate and html objects * * Called from {@link __construct()} as final step of object instantiation. * * @return void */ public function init() { parent::init(); $request = $this->getRequest(); if (in_array($request->getActionName(), $this->tokenReturnActions)) { // Tell the system where to return to after a survey has been taken $this->currentUser->setSurveyReturn($request); } }