添加单个组
@param $groupName
@param $groupTitle
@return $this
171467
public function addGroup($groupName , $groupTitle){

        $groups = $this->formGroups;
        $groups[] = ['name' => $groupName , 'title' => $groupTitle];

        $this->formGroups = $groups;
        return $this;
    }
282525
public function addCommandGroup($groupName, $commands = [])
    {
        $group = new CommandGroup($groupName);
        foreach ($commands as $val) {
            $cmd = $this->addCommand($val);
            $group->addCommand($cmd);
        }
        $this->commandGroups[] = $group;

        return $group;
    }
262625
public function setGroup($group, $feature)
    {
        if (!isset($this->_aGroup[$group])) {
            $this->_aGroup[$group] = array();
        }
        if (!in_array($feature, $this->_aGroup[$group])) {
            $this->_aGroup[$group][] = $feature;
        }
        return $this;
    }
38901
public function addToGroup($groupName, $elementName = '')
    {

		if(isset($this->groups[$groupName])){
			if(isset($this->groups[$groupName]['elements'])){
				if(!in_array($elementName, $this->groups[$groupName]['elements'])){
					$this->groups[$groupName]['elements'][] = $elementName;
				}
			}
		}

    }
1008611
public function setGroup($groupName)
    {
        $tagGroup = TagGroup::where('slug', $this->taggingUtility->slug($groupName))->first();

        if ($tagGroup) {
            $this->group()->associate($tagGroup);
            $this->save();

            return $this;
        } else {
            throw new \RuntimeException('No Tag Group found: '. $groupName);
        }
    }
1047013
public function groupby($groupBy = null): Select
    {
        if (!\is_string($groupBy) && !\is_array($groupBy)) {
            throw new InvalidArgumentException('$groupBy has to be an array or a string');
        }
        $this->groupBy = $this->namesClass->parse($groupBy);

        return $this;
    }
1304638
public function setTitle(string $title) : CNabuDataObject
    {
        if ($title === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$title")
            );
        }
        $this->setValue('nb_user_group_lang_title', $title);
        
        return $this;
    }
521592
public function addAll(array $messages, $groupName = null) {
		foreach ($messages as $message) {
			$this->add($message, $groupName);
		}
	}
425374
public function createGroup(string $groupName, int $maxClients = -1)
    {
        if(!isset($this->groups[$groupName]))
        {
            $this->useRedis(function($resource, $redis) use($groupName){
                $redis->sAdd($this->getGroupsKey(), $groupName);
            });
            $this->groups[$groupName] = [
                'maxClient' => $maxClients,
            ];
        }
    }
1185597
public function addGroupTextAction($title)
	{
		$id = ($s = sizeof($this->group_actions)) ? ($s + 1) : 1;

		return $this->group_actions[$id] = new GroupTextAction($title);
	}
674752
public function removeGroup($groupName)
    {

		if(isset($this->groups[$groupName])){
			foreach($this->groups[$groupName]['elements'] as $element){
				$this->removeElement($element);
			}
			unset($this->groups[$groupName]);
		}

    }
934111
public function setValue(string $key, $value, string $group = null): self
    {
        if (!empty($group)) {
            $this->values[$group][$key] = $value;
        } else {
            $this->values[$key] = $value;
        }

        return $this;
    }
245996
public function Css ($groupName = self::GROUP_NAME_DEFAULT) {
		$this->actualGroupName = $groupName;
		$this->_getLinksGroupContainer($groupName);
		return $this;
	}
353812
public function update($key, $value, $group = self::DEFAULT_GROUP) {
        $this->settings[$group][$key] = $value;

        return $this;
    }
1352357
public function add($name, $field = null, $fieldset = null, $group = null)
    {
        return $this->form->add($name, $field, $fieldset, $group);
    }
1291871
public function getGroupLogins($groupName)
    {
        if (!isset($this->config[$groupName])) {
            return null;
        }

        return $this->config[$groupName]['logins']->getRawValue();
    }
179427
public function insertPausedTriggerGroup($groupName)
    {
        $result = $this->res->getPausedTriggerCol()->updateOne(
            ['groupName' => $groupName],
            ['$set' => ['groupName' => $groupName]],
            ['upsert' => true]
        );

        return $result->isAcknowledged() && $result->getUpsertedCount();
    }