.

ConfirmationsController Class Reference
[Confirmations]

Confirmation controller. More...

Inheritance diagram for ConfirmationsController:
ControllerBase IController IEventSink

List of all members.

Public Member Functions

  action_confirm ($page_data, $id, $code)
  Builds and processes the activation page.
  get_routes ()
  Return array of IDispatchToken this controller takes responsability.

Detailed Description

Confirmation controller.

Author:
Gerd Riesselmann

Definition at line 8 of file confirmations.controller.php.


Member Function Documentation

ConfirmationsController::action_confirm ( page_data,
id,
code  
)

Builds and processes the activation page.

Definition at line 21 of file confirmations.controller.php.

00021                                                                {
00022                 Load::models('confirmations');
00023                 $handler = Confirmations::create_confirmation_handler($id, $code);
00024                 $err = $handler->confirm();
00025                 if ($err->is_error()) {
00026                         $page_data->error($err);
00027                 }
00028                 else {
00029                         $page_data->message($err);
00030                 }
00031                 $page_data->in_history = false;
00032                 $page_data->head->robots_index = ROBOTS_NOINDEX_FOLLOW;
00033                 $page_data->head->title = tr('Confirmation', 'confirmations');
00034         }
ConfirmationsController::get_routes (  ) 

Return array of IDispatchToken this controller takes responsability.

Reimplemented from ControllerBase.

Definition at line 12 of file confirmations.controller.php.

00012                                      {
00013                 return array(
00014                         new ParameterizedRoute('confirm/{id:ui>}/{code:s}', $this, 'confirm', new NoCacheCacheManager()),
00015                 );
00016         }

The documentation for this class was generated from the following file: