/usr/share/php/Horde/Rdo/Query/Literal.php is in php-horde-rdo 2.0.2-2.
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 43 44 45 46 47 48 49 | <?php
/**
* @category Horde
* @package Rdo
*/
/**
* Horde_Rdo literal query string object.
*
* If you need to pass a string that should not be quoted into a
* Horde_Rdo_Query object, wrap it in a Horde_Rdo_Query_Literal object
* and it will not be quoted or escaped. Note that of course you need
* to be very careful about introducing user input or any other
* untrusted input into these objects.
*
* Example:
* $literal = new Horde_Rdo_Query_Literal('MAX(column_name)');
*
* @category Horde
* @package Rdo
*/
class Horde_Rdo_Query_Literal
{
/**
* SQL literal string.
*
* @var string
*/
protected $_string;
/**
* Instantiate a literal, which is just a string stored as
* an instance member variable.
*
* @param string $string The string containing an SQL literal.
*/
public function __construct($string)
{
$this->_string = (string)$string;
}
/**
* @return string The SQL literal stored in this object.
*/
public function __toString()
{
return $this->_string;
}
}
|