/** */ protected function _params() { $qManager = new Whups_Query_Manager(); $qDefault = null; $qParams = $qManager->listQueries($GLOBALS['registry']->getAuth()); if (count($qParams)) { $qType = 'enum'; } else { $qDefault = _("You have no saved queries."); $qType = 'error'; } return array_merge(array('query' => array('type' => $qType, 'name' => _("Query to run"), 'default' => $qDefault, 'values' => $qParams)), parent::_params()); }
/** */ protected function _params() { $qParams = array(); $qDefault = null; $qParams = Whups::permissionsFilter($GLOBALS['whups_driver']->getQueues(), 'queue', Horde_Perms::READ); if (!$qParams) { $qDefault = _("No queues available."); $qType = 'error'; } else { $qType = 'enum'; } return array_merge(array('queue' => array('type' => $qType, 'name' => _("Queue"), 'default' => $qDefault, 'values' => $qParams)), parent::_params()); }
/** */ public function __construct($app, $params = array()) { parent::__construct($app, $params); $this->_name = _("My Requests"); }
/** */ public function __construct($app, $params = array()) { parent::__construct($app, $params); $this->_name = _("Unassigned Tickets"); }