Overview

Packages

  • Hermes
  • Horde
    • Data
  • Kronolith
  • None

Classes

  • Hermes
  • Hermes_Ajax_Application
  • Hermes_Api
  • Hermes_Driver
  • Hermes_Driver_Sql
  • Hermes_Factory_Driver
  • Hermes_Form_Admin_AddJobType
  • Hermes_Form_Admin_DeleteJobType
  • Hermes_Form_Admin_EditClientStepOne
  • Hermes_Form_Admin_EditClientStepTwo
  • Hermes_Form_Admin_EditJobTypeStepOne
  • Hermes_Form_Admin_EditJobTypeStepTwo
  • Hermes_Form_Deliverable
  • Hermes_Form_Deliverable_ClientSelector
  • Hermes_Form_Export
  • Hermes_Form_JobType_Edit_Step1
  • Hermes_Form_Search
  • Hermes_Form_Time
  • Hermes_Form_Time_Entry
  • Hermes_LoginTasks_SystemTask_Upgrade
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * @package Hermes
 4:  *
 5:  * Copyright 2002-2012 Horde LLC (http://www.horde.org/)
 6:  *
 7:  * See the enclosed file LICENSE for license information (BSD). If you
 8:  * did not receive this file, see http://www.horde.org/licenses/bsdl.php.
 9:  *
10:  */
11: 
12: /**
13:  * ExportForm:: is the export form which appears with search results on
14:  * the search screen.
15:  *
16:  * @author Chuck Hagenbuch <chuck@horde.org>
17:  * @author  Jason M. Felice <jason.m.felice@gmail.com>
18:  * @package Hermes
19:  */
20: class Hermes_Form_Export extends Horde_Form
21: {
22:     protected $_useFormToken = false;
23: 
24:     public function __construct(&$vars)
25:     {
26:         $perms = $GLOBALS['injector']->getInstance('Horde_Perms');;
27:         parent::Horde_Form($vars, _("Export Search Results"));
28: 
29:         $formats = array(
30:             'Hermescsv' => _("Comma-Separated Variable (.csv)"),
31:             'Hermesxls' => _("Microsoft Excel (.xls)"),
32:             'Iif' => _("QuickBooks (.iif)"),
33:             'Hermestsv' => _("Tab-Separated Variable (.tsv, .txt)"),
34:         );
35: 
36:         $this->addVariable(_("Select the export format"), 'format', 'enum',
37:                            true, false, null, array($formats));
38: 
39:         if ($perms->hasPermission('hermes:review', $GLOBALS['registry']->getAuth(), Horde_Perms::EDIT)) {
40:             $yesno = array('yes' => _("Yes"),
41:                            'no' => _("No"));
42:             $var = &$this->addVariable(_("Mark the time as exported?"),
43:                                        'mark_exported', 'enum', true, false,
44:                                        null, array($yesno));
45:             $var->setDefault('no');
46:         }
47: 
48:         $this->setButtons(_("Export"));
49:     }
50: 
51: }
52: 
API documentation generated by ApiGen