/usr/share/horde/whups/lib/Ui/VarRenderer/Whups.php is in php-horde-whups 3.0.0~beta1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | <?php
/**
* This file contains all Horde_Core_Ui_VarRenderer extensions for Whups
* specific form fields.
*
* Copyright 2008-2013 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
* did not receive this file, see http://www.horde.org/licenses/bsdl.php.
*
* @author Jan Schneider <jan@horde.org>
* @package Whups
*/
/**
* The Horde_Core_Ui_VarRenderer_whups class provides additional methods for
* rendering Whups_Form_Type_whupsemail fields.
*
* @author Jan Schneider <jan@horde.org>
* @package Whups
*/
class Horde_Core_Ui_VarRenderer_whups extends Horde_Core_Ui_VarRenderer_Html {
function _renderVarInput_whups_form_type_whupsemail($form, &$var, &$vars)
{
$name = $var->getVarName();
$GLOBALS['injector']->getInstance('Horde_Core_Factory_Imple')->create('Whups_Ajax_Imple_ContactAutoCompleter', array(
'triggerId' => $name
));
return sprintf('<input type="text" name="%s" id="%s" value="%s" autocomplete="off"%s />',
$name,
$name,
@htmlspecialchars($var->getValue($vars)),
$this->_getActionScripts($form, $var))
. '<span id="' . $name . '_loading_img" style="display:none;">'
. Horde::img('loading.gif', _("Loading..."))
. '</span>';
}
}
|