From: <var...@us...> - 2021-08-06 07:59:02
|
Revision: 10444 http://sourceforge.net/p/phpwiki/code/10444 Author: vargenau Date: 2021-08-06 07:59:01 +0000 (Fri, 06 Aug 2021) Log Message: ----------- lib/WikiGroup.php: remove unused functions setMemberOf and removeMemberOf Modified Paths: -------------- trunk/lib/WikiGroup.php Modified: trunk/lib/WikiGroup.php =================================================================== --- trunk/lib/WikiGroup.php 2021-08-06 07:55:40 UTC (rev 10443) +++ trunk/lib/WikiGroup.php 2021-08-06 07:59:01 UTC (rev 10444) @@ -23,6 +23,8 @@ * */ +require_once 'lib/pear/File_Passwd.php'; + if (!defined('GROUP_METHOD') or !in_array(GROUP_METHOD, array('NONE', 'WIKIPAGE', 'DB', 'FILE', 'LDAP')) @@ -237,7 +239,7 @@ } /** - * Determines all of the groups of which the current user is a member. + * Determines all groups of which the current user is a member. * * This method is an abstraction. An error is sent and an empty * array is returned. @@ -376,39 +378,6 @@ } } - /** - * Add the current or specified user to a group. - * - * This method is an abstraction. The group and user are ignored, an error - * is sent, and false (not added) is always returned. - * @param string $group User added to this group. - * @param string $user Username to add to the group (default = current user). - * @return bool On true user was added, false if not. - */ - function setMemberOf($group, $user = '') - { - trigger_error(__sprintf("Method “%s” not implemented in this GROUP_METHOD %s", - 'setMemberOf', GROUP_METHOD), - E_USER_WARNING); - return false; - } - - /** - * Remove the current or specified user to a group. - * - * This method is an abstraction. The group and user are ignored, and error - * is sent, and false (not removed) is always returned. - * @param string $group User removed from this group. - * @param string $user Username to remove from the group (default = current user). - * @return bool On true user was removed, false if not. - */ - function removeMemberOf($group, $user = '') - { - trigger_error(__sprintf("Method “%s” not implemented in this GROUP_METHOD %s", - 'removeMemberOf', GROUP_METHOD), - E_USER_WARNING); - return false; - } } /** @@ -422,7 +391,6 @@ { function __construct() { - return; } /** @@ -856,7 +824,6 @@ trigger_error(sprintf(_("Cannot open AUTH_GROUP_FILE %s"), AUTH_GROUP_FILE), E_USER_WARNING); return; } - require_once 'lib/pear/File_Passwd.php'; $this->_file = new File_Passwd(AUTH_GROUP_FILE, false, AUTH_GROUP_FILE . ".lock"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |