Overview

Packages

  • Horde
    • Form
    • MIME
      • Viewer
    • Scheduler
  • None
  • Whups
    • UnitTests

Classes

  • Whups_Application
  • Whups_Block_Myqueries
  • Whups_Block_Myrequests
  • Whups_Block_Mytickets
  • Whups_Block_Query
  • Whups_Block_Queuecontents
  • Whups_Block_Queuesummary
  • Whups_Block_Unassigned
  • Whups_Driver_sql
  • Whups_Exception
  • Whups_Factory_Driver
  • Whups_Form_AddListener
  • Whups_Form_DeleteListener
  • Whups_Form_Queue_StepOne
  • Whups_Form_Queue_StepThree
  • Whups_Form_Queue_StepTwo
  • Whups_Form_Renderer_Query
  • Whups_Form_SetTypeStepOne
  • Whups_Form_SetTypeStepTwo
  • Whups_Form_Ticket_Delete
  • Whups_Test_Perms
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Show the current user's queries.
 4:  */
 5: class Whups_Block_Myqueries extends Horde_Core_Block
 6: {
 7:     /**
 8:      */
 9:     public function __construct($app, $params = array())
10:     {
11:         parent::__construct($app, $params);
12: 
13:         $this->_name = _("Saved Queries");
14:     }
15: 
16:     /**
17:      */
18:     protected function _content()
19:     {
20:         $qManager = new Whups_Query_Manager();
21:         $queries = $qManager->listQueries($GLOBALS['registry']->getAuth(), true);
22:         $myqueries = new Whups_View_SavedQueries(
23:             array('results' => $queries));
24:         Horde::startBuffer();
25:         $myqueries->html(false);
26:         $html = Horde::endBuffer();
27:         if ($html) {
28:             return $html;
29:         }
30: 
31:         return '<p><em>' . _("No queries have been saved.") . '</em></p>';
32:     }
33: 
34: }
35: 
API documentation generated by ApiGen