/usr/share/horde/nag/lib/Form/Type/NagSearchDue.php is in php-horde-nag 4.2.1-4.
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 | <?php
/**
* The Horde_Form_Type_NagSearchDue:: class provides a form field for combining
* the due_within and due_of form fields for task searching.
*
* @copyright 2012-2014 Horde LLC (http://www.horde.org)
* @author Michael J Rubinsky <mrubinsk@horde.org>
* @license http://www.horde.org/licenses/gpl GPL
* @package Nag
*/
class Nag_Form_Type_NagSearchDue extends Horde_Form_Type
{
public function getInfo(&$vars, &$var, &$info)
{
$due_within = $vars->get('due_within');
$due_of = $vars->get('due_of');
if (!empty($due_within) && !empty($due_of)) {
$info = array(
$vars->get('due_within'),
$vars->get('due_of'));
} else {
$info = array();
}
}
public function isValid(&$var, &$vars, $value, &$message)
{
return true;
}
public function getTypeName()
{
return 'NagSearchDue';
}
}
|