@param Group $group

@return Window
169842
protected function createManialink(Group $group)
    {
        $className = $this->className;

        $manialink = new $className(
            $this,
            $group,
            $this->translationsHelper,
            $this->windowFrameFactory,
            $this->name,
            $this->sizeX,
            $this->sizeY,
            $this->posX,
            $this->posY
        );

        $actionId = $this->actionFactory->createManialinkAction(
            $manialink,
            [$this, 'closeManialink'],
            [],
            true
        );

        $manialink->setCloseAction($actionId);

        return $manialink;
    }
643559
public function setCurrentGroup(string $group): Generator
    {
        $response = yield from $this->sendCommand(new Command('GROUP', $group));

        if (preg_match('/(\d+)\s+(\d+)\s+(\d+)\s+([A-z\._-]+)/', $response->message(), $matches) === false) {
            throw new FormatException('Invalid group format');
        }

        $this->group = new Group($matches[4], (int)$matches[1], (int)$matches[2], (int)$matches[3]);
        return $this->group;
    }
96180
public function import($asset, $group = null)
    {
        $this->parent->import($asset, $this->mergePassedGroup($asset, $group));

        return $this;
    }
682033
public function findByGroup(Group $group)
    {
        $query = $this->createQueryBuilder('a')
                      ->innerjoin('a.groups', 'g')
                      ->where('g.id = :group')
                      ->setParameter('group', $group->getId());
        return $query->getQuery()->getResult();
     }
1280930
protected function renderToggleGroup(ToggleGroup $group)
	{
		$groupLabel = $group->getLabel();

		$this->table->addCell($groupLabel);

		// Build all the radios
		$toggles = '';
		foreach ($group as $toggle)
		{
			$toggles .= $toggle->getLabel() . $toggle->render($this);
		}

		$this->table->addCell($toggles);

		$this->table->addRow();

		return '';
	}
126993
public function byGroup($group)
    {
        $filtered_messages = $this->filterMessage('group', $group);

        $this->filtered = $filtered_messages;

        return $this;
    }
509334
public function cacheFlushByGroup($group)
    {
        $group = StringHelper::toUnderscoreVariable(get_called_class()) . '/' . StringHelper::toUnderscoreVariable($group);
        $this->getCache()->setGroup($group)->clear();
        
        return $this;
    }
915783
public function chgrp(int $group): vfsStreamContent
    {
        $this->group                 = $group;
        $this->lastAttributeModified = time();
        return $this;
    }
782584
public function updateGroup (Group $group)
    {
        $json = [
            'group' => [
                'id'   => $group->getID(),
                'name' => $group->getName(),
            ],
        ];

        $request = new Request("POST", "https://api.weixin.qq.com/cgi-bin/groups/update", [], json_encode($json));
        $this->client->send($request);
    }
399338
protected function createManialink(Group $group)
    {
        $className = $this->className;

        return new $className($this, $group, $this->name, $this->sizeX, $this->sizeY, $this->posX, $this->posY);
    }
299622
public static function group(string $group): self
    {
        $item = new self();

        $item->group = $group;

        return $item;
    }
287722
public function load($group)
    {
        $confg = $this->hasConfigFile($group) ? $this->getConfigFilename($group) : array();
        return ServiceBuilder::factory($confg);
    }
59259
protected function createConfigGroupForm(ConfigGroup $group = null)
    {
        $formBuilder = $this->createFormBuilder();
        if ($group) {
            $values = $this->container->get('admin.configuration.configvalue_manager')->getRepository()->findByConfigGroupId($group->getId());
            foreach ($values as $configValue) {
                $sub = $this->container->get('form.factory')->createNamedBuilder(
                    str_replace(':', '___', $configValue->getPath()),
                    'admin_configuration_configvalue_'.$configValue->getConfigType()->getFormType(),
                    $configValue
                );
                $formBuilder->add($sub);
            }
        }

        return $formBuilder->getForm();
    }
1011669
public function addGroup(GroupInterface $group)
    {
        if (!$this->hasGroup($group)) {
            $this->groups->set($group->getName(), $group);
            $group->addUser($this);
        }

        return $this;
    }
31601
public function showEditComponentGroup(ComponentGroup $group)
    {
        return View::make('dashboard.components.groups.edit')
            ->withPageTitle(trans('dashboard.components.groups.edit.title').' - '.trans('dashboard.dashboard'))
            ->withGroup($group);
    }
581382
public function setGroup($group)
	{
	    if ($this->options['group']) {
	        $group = str_replace('//', '/', $this->options['group'] . '/' . $group);
	    }
	    
	    return $this->setOption('group', $group);
	}
671239
public function clearGroup($group)
    {
        $success = false;
        wincache_ucache_inc($this->_config['prefix'] . $group, 1, $success);

        return $success;
    }