From: Michael J. Rubinsky Date: Thu, 7 Oct 2010 16:19:56 +0000 (-0400) Subject: Fix constant names, cannot type hint scalers X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=57a6d43c74123be9e8212734e9931032d97d8b2b;p=horde.git Fix constant names, cannot type hint scalers --- diff --git a/framework/Core/lib/Horde/Core/Binder/Group.php b/framework/Core/lib/Horde/Core/Binder/Group.php deleted file mode 100644 index fada734cd..000000000 --- a/framework/Core/lib/Horde/Core/Binder/Group.php +++ /dev/null @@ -1,36 +0,0 @@ -query('horde_group'); - } - - if (!$group) { - $driver = $GLOBALS['conf']['group']['driver']; - $params = Horde::getDriverConfig('group', $driver); - if ($driver == 'ldap') { - $params['ldap'] = $injector->getInstance('Horde_Core_Factory_Ldap')->getLdap('horde', 'group'); - } - $group = Horde_Group::factory($driver, $params); - } - - if (!empty($GLOBALS['conf']['group']['cache'])) { - register_shutdown_function(array($group, 'shutdown')); - } - - return $group; - } - - public function equals(Horde_Injector_Binder $binder) - { - return false; - } -} diff --git a/framework/Group/lib/Horde/Group.php b/framework/Group/lib/Horde/Group.php index aedd5c4c1..d80795d9b 100644 --- a/framework/Group/lib/Horde/Group.php +++ b/framework/Group/lib/Horde/Group.php @@ -190,7 +190,7 @@ class Horde_Group * @return Horde_Group_DataTreeObject A new group object. * @throws Horde_Group_Exception */ - public function newGroup(string $name, $parent = self::ROOT) + public function newGroup($name, $parent = self::ROOT) { if ($parent != self::ROOT) { $name = $this->getGroupName($parent) . ':' . DataTree::encodeName($name); @@ -508,8 +508,8 @@ class Horde_Group public function listGroups($refresh = false) { if ($refresh || !isset($this->_groupList)) { - $this->_groupList = $this->_datatree->get(DATATREE_FORMAT_FLAT, GROUP_ROOT, true); - unset($this->_groupList[GROUP_ROOT]); + $this->_groupList = $this->_datatree->get(DATATREE_FORMAT_FLAT, self::ROOT, true); + unset($this->_groupList[self::ROOT]); } return $this->_groupList;