runTasks() public method

This function will generate the list of tasks to perform during this login and will redirect to the login tasks page if necessary. This is the function that should be called from the application upon login.
public runTasks ( array $opts = [] ) : mixed
$opts array Options: - confirmed: (array) The list of confirmed tasks. - url: (string) The URL to redirect to when finished. - user_confirmed: (boolean) If true, indicates that any pending actions have been confirmed by the user.
return mixed Null in case no redirection took place, the return value from the backend redirect() call otherwise.
Esempio n. 1
0
 /**
  */
 public function runTasks(array $opts = array())
 {
     if (!isset($opts['url'])) {
         $opts['url'] = Horde::selfUrl(true, true, true);
     }
     if ($this->_app != 'horde' && $GLOBALS['session']->get('horde', 'logintasks') !== true) {
         $GLOBALS['injector']->getInstance('Horde_Core_Factory_LoginTasks')->create('horde')->runTasks($opts);
     }
     parent::runTasks($opts);
 }