@param Group $group

@return Window
355548
protected function createManialink(Group $group, $hideable = true)
    {

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

        return $manialink;
    }
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();
     }
126993
public function byGroup($group)
    {
        $filtered_messages = $this->filterMessage('group', $group);

        $this->filtered = $filtered_messages;

        return $this;
    }
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 '';
	}
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();
    }
587882
public function render($group)
    {
        if ($this->hasGroupRenderer($group)) {
            return $this->callCustomRenderer($group);
        }

        if ($buildConfig = $this->getBuildConfig($group)) {
            return $this->renderWithCompiled($buildConfig, $group);
        }

        return $this->registry[$group]->setRenderer($this->renderer);
    }
135519
public function insertGroup(Group $group)
    {
        $group->setGuid($this->container->get('claroline.utilities.misc')->generateGuid());
        $this->om->persist($group);
        $this->eventDispatcher->dispatch('log', 'Log\LogGroupCreate', array($group));
        $this->om->flush();
    }
12098
public function clear($group = null) {
        if( isset($group) )
            unset($this->settings[$group]);
        else
            $this->settings = [];

        return $this;
    }
1038319
public function group($group)
    {
        if ($group instanceof Closure) {
            $callback = $group;
            $group = new Group();
            is_callable('Closure::bind') && $callback = $callback->bindTo($group, $group);
            $callback($group);
        }

        if ($group instanceof Group) {
            $group = $group->getGroup();
        }

        $this->pipeline[] = ['$group' => $group];

        return $this;
    }
769727
public function setGroup(string $group, array $groupMessage)
    {
        return $this->setAndroidGroup($group, $groupMessage)
            ->setAmazonGroup($group, $groupMessage);
    }
1168198
public function getTabGroup(string $group): TabGroup
    {
        if (!isset($this->tabGroups[$group])) {
            throw new \InvalidArgumentException(sprintf('Requested group named "%s" is not found. Did you forget to tag the service?', $group));
        }

        return $this->tabGroups[$group];
    }
350110
public function groupBy( $group )
    {
        $result = [ ];

        foreach ( $this->items as $key => $value )
        {
            $result[ $this->getGroupByKey( $group, $key, $value ) ][ ] = $value;
        }

        return new static( $result );
    }
492357
protected function executeActions($group)
    {
        $executedCount = 0;
        reset($this->actions[$group]);
        while (list($index, $action) = each($this->actions[$group])) {
            if ($this->isActionReadyToExecute($action[0], $action[2])) {
                $executedCount += $this->executeAction($index, $action);
                unset($this->actions[$group][$index]);
            }
        }

        return $executedCount;
    }
1334682
public function setGroup($group)
    {
        $fs = FileSystem::getFileSystem();

        $fs->chgrp($this->getPath(), $group);
    }
399338
protected function createManialink(Group $group)
    {
        $className = $this->className;

        return new $className($this, $group, $this->name, $this->sizeX, $this->sizeY, $this->posX, $this->posY);
    }
62951
public function get_settings( $group ) {
		if ( ! isset( $this->_group_priority[ $group ], $this->_groups[ $this->_group_priority[ $group ] ] ) ) {
			return $this->apply_filters( 'get_settings', [], $group );
		}

		return $this->apply_filters( 'get_settings', $this->_groups[ $this->_group_priority[ $group ] ][ $group ], $group );
	}
929686
public function deleteGroup (Group $group)
    {
        $this->client->send(
            new Request(
                'POST',
                'https://api.weixin.qq.com/cgi-bin/groups/delete',
                [],
                json_encode([
                    'group' => [
                        'id' => $group->getID(),
                    ],
                ])
            )
        );
    }