Overview

Packages

  • None
  • Vilma

Classes

  • Vilma
  • Vilma_Api
  • Vilma_Driver
  • Vilma_Driver_Qmailldap
  • Vilma_Driver_Sql
  • Vilma_Form_DeleteDomain
  • Vilma_Form_EditAlias
  • Vilma_Form_EditDomain
  • Vilma_Form_EditForward
  • Vilma_Form_EditUser
  • Vilma_MailboxDriver
  • Vilma_MailboxDriver_Hooks
  • Vilma_MailboxDriver_Imap
  • Vilma_MailboxDriver_Maildrop
  • Vilma_MailboxDriver_Null
  • Vilma_Test
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Copyright 2006-2007 Alkaloid Networks <http://www.alkaloid.net>
 4:  *
 5:  * See the enclosed file LICENSE for license information (BSD). If you did
 6:  * did not receive this file, see http://cvs.horde.org/co.php/vilma/LICENSE.
 7:  *
 8:  * @author  Ben Klang <ben@alkaloid.net>
 9:  * @package Vilma
10:  */
11: class Vilma_Form_EditAlias extends Horde_Form
12: {
13:     public function __construct($vars)
14:     {
15:         $editing = $vars->get('mode') == 'edit';
16:         if ($editing) {
17:             $title = sprintf(_("Edit Alias \"%s\" for \"%s\""),
18:                              $vars->get('alias_address'),
19:                              $vars->get('address'));
20:         } else {
21:             $title = sprintf(_("New Alias for %s"),
22:                              $vars->get('address'));
23:         }
24:         parent::Horde_Form($vars, $title);
25: 
26:         /* Set up the form. */
27:         $this->setButtons(true, true);
28:         $this->addHidden('', 'address', 'text', false);
29:         $this->addHidden('', 'mode', 'text', false);
30:         $this->addHidden('', 'id', 'text', false);
31:         if ($editing) {
32:             $this->addHidden('', 'alias', 'text', false);
33:         }
34:         $this->addVariable(_("Alias Address"), 'alias_address', 'email', true, false, _("The email address to add as an alias for this user.  Note that the server must be configured to receive mail for the domain contained in this address."));
35:     }
36: }
37: 
API documentation generated by ApiGen