From: Chuck Hagenbuch Date: Sat, 10 Jan 2009 17:17:22 +0000 (-0500) Subject: remove statics for the inflector X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5a8ffee2389a222a5d9982bbce36fe63c3538786;p=horde.git remove statics for the inflector --- diff --git a/framework/Rdo/lib/Horde/Rdo.php b/framework/Rdo/lib/Horde/Rdo.php index ddcf41ee9..ec06938e9 100644 --- a/framework/Rdo/lib/Horde/Rdo.php +++ b/framework/Rdo/lib/Horde/Rdo.php @@ -40,34 +40,4 @@ class Horde_Rdo */ const MANY_TO_MANY = 4; - /** - * Global inflector object. - * - * @var Horde_Support_Inflector - */ - protected static $_inflector; - - /** - * Get the global inflector object. - * - * @return Horde_Support_Inflector - */ - public static function getInflector() - { - if (!self::$_inflector) { - self::$_inflector = new Horde_Support_Inflector; - } - return self::$_inflector; - } - - /** - * Set a custom global inflector. - * - * @param Horde_Support_Inflector $inflector - */ - public static function setInflector($inflector) - { - self::$_inflector = $inflector; - } - } diff --git a/framework/Rdo/lib/Horde/Rdo/Mapper.php b/framework/Rdo/lib/Horde/Rdo/Mapper.php index e386c2e16..dd9963aac 100644 --- a/framework/Rdo/lib/Horde/Rdo/Mapper.php +++ b/framework/Rdo/lib/Horde/Rdo/Mapper.php @@ -123,7 +123,8 @@ abstract class Horde_Rdo_Mapper implements Countable return $this->adapter; case 'inflector': - return Horde_Rdo::getInflector(); + $this->inflector = new Horde_Support_Inflector(); + return $this->inflector; case 'table': $this->table = !empty($this->_table) ? $this->_table : $this->mapperToTable();