/**
  * Ask the user for a token
  *
  * @return void
  */
 public function indexAction()
 {
     // Make sure to return to the forward screen
     $this->currentUser->setSurveyReturn();
     $request = $this->getRequest();
     $tracker = $this->loader->getTracker();
     $form = $tracker->getAskTokenForm(array('displayOrder' => array('element', 'description', 'errors'), 'labelWidthFactor' => 0.8));
     if ($request->isPost() && $form->isValid($request->getParams())) {
         $this->_forward('forward');
         return;
     }
     $form->populate($request->getParams());
     $this->displayTokenForm($form);
 }
 /**
  * Make we return to this screen after completion
  *
  * @return void
  */
 public function setSurveyReturn()
 {
     $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();
     // 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);
     }
 }