Class Confirmation

Description

Simple secured confirmation dialog

Displays and verifies a confirmation dialog. This dialog is secured using a token (nonce).

Usage:

  1. $confirm = new Confirmation('Are you sure you want to do something?', 'dosomething');
  2. $confirm->text = 'Foo bar';
  3.  
  4. try {
  5. $confirm->requireConfirmation();
  6. } catch(ApplicationException $error) {
  7. return $confirm;
  8. }
  9.  
  10. // do something ....

Located in /phpsatk-lib/global/org.eenterphace.sat.confirmation/confirmation.php (line 50)

PHPTAL
   |
   --TemplateTAL
      |
      --Confirmation
Method Summary
Confirmation __construct (string $title, [string $name = 'default'])
string render ()
Methods
Constructor __construct (line 65)

Initialize the confirmation, template

  • access: public
Confirmation __construct (string $title, [string $name = 'default'])
  • string $title: Title/Question
  • string $name: Name/Identifier (used for token identification)

Redefinition of:
TemplateTAL::__construct()
Initializes a new PHPTAL Template
render (line 102)

Renders the template

Inserts the token.

  • access: public
string render ()

Redefinition of:
TemplateTAL::render()
Get template output
requireConfirmation (line 79)

Requires confirmation

Will throw a ApplicationException until the user has confirmed.

  • access: public
void requireConfirmation ()

Inherited Methods

Inherited From TemplateTAL

TemplateTAL::__construct()
TemplateTAL::getType()
TemplateTAL::prepare()
TemplateTAL::render()
TemplateTAL::renderDOM()

Documentation generated on Mon, 21 May 2007 10:34:49 +0200 by phpDocumentor 1.3.0RC5