Class Horde_Rdo_Query_Literal

Description

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)');

Located in /Rdo/lib/Horde/Rdo/Query/Literal.php (line 22)


	
			
Variable Summary
Method Summary
 Horde_Rdo_Query_Literal __construct (string $string, [Horde_Rdo_Mapper $mapper = null])
 string __toString ()
Variables
Horde_Rdo_Mapper $mapper (line 34)
  • access: public
string $_string (line 29)

SQL literal string.

  • access: protected
Methods
Constructor __construct (line 43)

Instantiate a literal, which is just a string stored as an instance member variable.

  • access: public
Horde_Rdo_Query_Literal __construct (string $string, [Horde_Rdo_Mapper $mapper = null])
  • string $string: The string containing an SQL literal.
  • Horde_Rdo_Mapper $mapper: The Mapper object governing this query.
setMapper (line 62)
  • return: Return the query object for fluent chaining.
  • access: public
Horde_Rdo_Query setMapper (Horde_Rdo_Mapper $mapper)
__toString (line 52)
  • return: The SQL literal stored in this object.
  • access: public
string __toString ()

Documentation generated on Sun, 30 Jan 2011 05:19:17 +0000 by phpDocumentor 1.4.3