Assign display group to a display group.

@param array|int $displayGroupId The Display Group ID to assign
@return XiboDisplayGroup
352175
public function assignDisplayGroup($displayGroupId)
    {
        $this->getLogger()->info('Assigning display Group ID ' . json_encode($displayGroupId) . ' To display Group ID ' . $this->displayGroupId);
        $this->doPost('/displaygroup/' . $this->displayGroupId . '/displayGroup/assign', [
        'displayGroupId' => $displayGroupId
        ]);
        return $this;
    }
359993
public function getGroup($groupId)
    {
        static $groups = array();

        if (! isset($groups[$groupId])) {
            $groups[$groupId] = $this->_loadClass('Group', true, array($groupId));
    }

        return $groups[$groupId];
    }
651173
public function getDisplayGroup($name)
    {
        if ($group = parent::getDisplayGroup($name)) {
            return $group;
        } else {
            $subforms = $this->getSubForms();
            foreach($subforms as $subform) {
                if ($group = $subform->getDisplayGroup($name)) {
                    return $group;
                }
            }
            return;
        }
    }
1214680
public function withGroup($group)
    {
        $group = str_replace('\\', '/', $group);
        if (!isset(static::$instances[$group])) {
            $instance = new static($this->options);
            $instance->setGroup($group);
            static::$instances[$group] = $instance;
        }
        return static::$instances[$group];
    }
127510
public function getEvents($displayGroupId, $date)
    {
        $this->getLogger()->info('Getting list of events for specified display group ' . $displayGroupId . ' and date ' . $date);
        $response = $this->doGet('/schedule/' . $displayGroupId . '/events', [
            'date' => $date
        ]);

       return clone $this->hydrate($response);
    }
182089
public function setGroup($group)
    {
        if (!empty($group)) {
            $this->query['group'] = $group;
        } else {
            unset($this->query['group']);
        }
        return $this;
    }
184990
public function setDisplayType($type)
    {
        if (empty($type)) {
            $this->displayType = null;
            return $this;
        }

        if (!is_string($type)) {
            throw new InvalidArgumentException(
                'Property display type must be a string'
            );
        }

        $this->displayType = $type;

        return $this;
    }
629389
public function setDisplayFormat($displayFormat)
    {
        if (!in_array($displayFormat, static::FORMATS)) {
            throw new \InvalidArgumentException("bad format '{$displayFormat}'");
        }
        $this->displayFormat = $displayFormat;

        return $this;
    }
1098809
public function setGroupDisplayMode($mode)
    {
        if (!is_string($mode)) {
            throw new InvalidArgumentException(
                'Display mode must be a string'
            );
        }

        if ($mode === 'tabs') {
            $mode = 'tab';
        }

        $this->groupDisplayMode = $mode;

        return $this;
    }
421634
public function setGroupId( $groupId )
    {
        $this->groupId = (int) $groupId ?: null;

        if ( $this->group && $this->group->id != $this->groupId )
        {
            $this->group = null;
        }

        return $this;
    }
315380
public function setDisplay($display)
    {
        if ($display === null) {
            $this->display = null;

            return $this;
        }

        if (!is_string($display)) {
            throw new InvalidArgumentException(sprintf(
                'Layout must be a string, received %s',
                (is_object($display) ? get_class($display) : gettype($display))
            ));
        }

        $supportedLayouts = $this->supportedDisplayLayouts();
        if (!in_array($display, $supportedLayouts)) {
            throw new OutOfBoundsException(sprintf(
                'Unsupported layout [%s]; must be one of %s',
                $display,
                implode(', ', $supportedLayouts)
            ));
        }

        $this->display = $display;

        return $this;
    }
1139873
public function getGroup($groupId)
    {
        if (isset($this->_groupIdMap[$groupId])) {
            return $this->_groupIdMap[$groupId];
        }

        $this->_logger->log(Logger::ERROR, sprintf('Group ID "%s" is not in datafile.', $groupId));
        $this->_errorHandler->handleError(new InvalidGroupException('Provided group is not in datafile.'));
        return new Group();
    }
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);
    }
194039
public function updateGroup($groupId, $fields = array()) {
        if (empty($fields)) {
            $this->throwException(__METHOD__, 'Set fields for group');
        }

        $group = new \CGroup;
        if ($group->Update($groupId, $this->prepareFields($fields))) {
            return intval($groupId);
        }

        $this->throwException(__METHOD__, $group->LAST_ERROR);
    }
357637
public function setDisplayDescription( $displayDescription )
    {
        if ( empty( $displayDescription ) )
        {
            $displayDescription = array();
        }
        else if ( $displayDescription instanceof Traversable )
        {
            $displayDescription = ArrayUtils::iteratorToArray( $displayDescription );
        }
        else if ( ! is_array( $displayDescription ) )
        {
            $displayDescription = (array) $displayDescription;
        }

        if ( ! isset( $displayDescription[static::FALLBACK_LOCALE] ) )
        {
            reset( $displayDescription );
            $key = key( $displayDescription );
            $displayDescription[static::FALLBACK_LOCALE] = $displayDescription[$key];
            unset( $displayDescription[$key] );
        }

        $this->displayDescription = $displayDescription;
        return $this;
    }
80
public function setDisplayBank($displayBank = true)
    {
        $this->isBool($displayBank, 'displayBank');
        $this->displayBank = $displayBank;

        return $this;
    }
457660
public function addGroup(Group $group)
    {
        $this->groups->put($group->getName(), $group);

        return $this;
    }