The Literal object has no need for a Mapper
authorChuck Hagenbuch <chuck@horde.org>
Wed, 9 Sep 2009 03:44:16 +0000 (23:44 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Wed, 9 Sep 2009 03:44:16 +0000 (23:44 -0400)
framework/Rdo/lib/Horde/Rdo/Query/Literal.php

index 035a4f8..9f29458 100644 (file)
@@ -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;
-        }
-    }
-
 }