2 namespace wcf\system\option\user\group;
5 * InfiniteInverseIntegerUserGroupOptionType is an implementation of IUserGroupOptionType
7 * The merge of option values returns -1 if all values are -1 otherwise the lowest value.
10 * @copyright 2001-2011 WoltLab GmbH
11 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
12 * @package com.woltlab.wcf
13 * @subpackage system.option.user.group
14 * @category Community Framework
16 class InfiniteInverseIntegerUserGroupOptionType extends InverseIntegerUserGroupOptionType {
18 * @see wcf\system\option\user\group\IUserGroupOptionType::merge()
20 public function merge(array $values) {
21 foreach ($values as $key => $value) {
22 if ($value == -1) unset($values[$key]);
25 if (count($values) == 0) return -1;