From: Chuck Hagenbuch Date: Wed, 9 Sep 2009 03:44:16 +0000 (-0400) Subject: The Literal object has no need for a Mapper X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b62d7fe5cd0355cc1cadae146cba1cdbedc7f22a;p=horde.git The Literal object has no need for a Mapper --- diff --git a/framework/Rdo/lib/Horde/Rdo/Query/Literal.php b/framework/Rdo/lib/Horde/Rdo/Query/Literal.php index 035a4f833..9f29458e7 100644 --- a/framework/Rdo/lib/Horde/Rdo/Query/Literal.php +++ b/framework/Rdo/lib/Horde/Rdo/Query/Literal.php @@ -29,21 +29,14 @@ class Horde_Rdo_Query_Literal protected $_string; /** - * @var Horde_Rdo_Mapper - */ - public $mapper; - - /** * Instantiate a literal, which is just a string stored as * an instance member variable. * * @param string $string The string containing an SQL literal. - * @param Horde_Rdo_Mapper $mapper The Mapper object governing this query. */ - public function __construct($string, $mapper = null) + public function __construct($string) { $this->_string = (string)$string; - $this->setMapper($mapper); } /** @@ -53,15 +46,4 @@ class Horde_Rdo_Query_Literal { return $this->_string; } - - /** - * @param Horde_Rdo_Mapper $mapper Rdo mapper base class - */ - public function setMapper($mapper) - { - if ($mapper !== $this->mapper) { - $this->mapper = $mapper; - } - } - }