Assign display to the display group.

@param array|int $displayId Display ID to assign
@return XiboDisplayGroup
544310
public function assignDisplay($displayId)
    {
        $this->getLogger()->info('Assigning display ID ' . json_encode($displayId) . ' To display Group ID ' . $this->displayGroupId);
        $this->doPost('/displaygroup/' . $this->displayGroupId . '/display/assign', [
            'displayId' => $displayId
            ]);

        return $this;
    }
17011
public function updateDisplayOrder($displayOrder, $cID = 0)
    {
        $displayOrder = (int) $displayOrder;

        //this line was added to allow changing the display order of aliases
        if (!intval($cID)) {
            $cID = ($this->getCollectionPointerOriginalID() > 0) ? $this->getCollectionPointerOriginalID() : $this->cID;
        }

        $app = Application::getFacadeApplication();
        $db = $app->make(Connection::class);

        $oldDisplayOrder = $db->fetchColumn('SELECT cDisplayOrder FROM Pages WHERE cID = ?', [$cID]);

        // Exit out if the display order for this page doesn't change.
        if ($oldDisplayOrder === null || $displayOrder === (int) $oldDisplayOrder) {
            return;
        }

        // Store the new display order.
        $db->executeQuery('update Pages set cDisplayOrder = ? where cID = ?', [$displayOrder, $cID]);

        // Because the display order of another page can be changed,
        // the page object is retrieved first in order to pass it to the event.
        $page = $this;
        if ($cID && (int) $cID !== (int) $this->getCollectionID()) {
            $page = static::getByID($cID);
        }

        if ($page->isError()) {
            return;
        }

        // Fire an event that the page display order has changed.
        $event = new DisplayOrderUpdateEvent($page);
        $event->setOldDisplayOrder($oldDisplayOrder);
        $event->setNewDisplayOrder($displayOrder);
        Events::dispatch('on_page_display_order_update', $event);
    }
818387
public function defaultLayout($layoutId)
    {
        $this->getLogger()->info('Setting Default layout ID ' . $layoutId . ' for display ID ' . $this->displayId);
        $this->doPut('/display/defaultlayout/' . $this->displayId, [
            'layoutId' => $layoutId
        ]);
    }
960202
public function unassignMedia($mediaId)
    {
        $this->getLogger()->info('Unassigning media ID ' . json_encode($mediaId) . ' From display Group ID ' . $this->displayGroupId);
        $this->doPost('/displaygroup/' . $this->displayGroupId . '/media/unassign', [
            'mediaId' => $mediaId
            ]);

        return $this;
    }
482346
public function setBlockTheme($themes, $blockId = null)
    {
        $view = $blockId
            ? $this->view[$blockId]
            : $this->view;

        $this->themes[] = [$view, $themes];

        return $this;
    }
861348
public function insertGroupAssignment($groupId, $typeId, $status)
    {
        $groups = $this->loadGroupData([$groupId]);
        $group = $groups[0];

        $q = $this->dbHandler->createInsertQuery();
        $q->insertInto(
            $this->dbHandler->quoteTable('ezcontentclass_classgroup')
        )->set(
            $this->dbHandler->quoteColumn('contentclass_id'),
            $q->bindValue($typeId, null, \PDO::PARAM_INT)
        )->set(
            $this->dbHandler->quoteColumn('contentclass_version'),
            $q->bindValue($status, null, \PDO::PARAM_INT)
        )->set(
            $this->dbHandler->quoteColumn('group_id'),
            $q->bindValue($groupId, null, \PDO::PARAM_INT)
        )->set(
            $this->dbHandler->quoteColumn('group_name'),
            $q->bindValue($group['name'])
        );

        $q->prepare()->execute();
    }
246831
public function setDisplayName($displayName)
    {
        if ($this->check()) {
            $userId = $this->data['user_id'];
            return $this->matrix()->request('PUT', $this->endpoint('profile/'.urlencode($userId).'/displayname'), [
                'displayname' => $displayName
            ], [
                'access_token' => $this->data['access_token']
            ]);
        }
        throw new \Exception('Not authenticated');
    }
1341228
public function setDisplayAmount($displayAmount = true)
    {
        $this->isBool($displayAmount, 'displayAmount');
        $this->displayAmount = $displayAmount;

        return $this;
    }
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);
    }
1311212
public function showGroup( $groupId )
    {
        $collection = $this->repository->getAppointmentsByParam( ['groupId' => $groupId ] );
        return $this->buildBundle( $collection );
    }
702451
public function get_select_option(
		$display,
		$value,
		$selected,
		array $attributes = [],
		array $optgroup_attributes = []
	) {
		if ( is_iterable( $display ) ) {
			return $this->option_group( $display, $value, $selected, $optgroup_attributes, $attributes );
		}

		return $this->option( $display, $value, $selected, $attributes );
	}
435209
public function displayType()
    {
        if ($this->displayType === null) {
            $this->displayType = $this->resolveDisplayType();
        }

        return $this->displayType;
    }
975658
public function setDisplayCategories($displayCategories) {
		$this->displayCategories = [];

		foreach ($displayCategories as $displayCategory) {
			$this->addDisplayCategory($displayCategory);
		}

		return $this;
	}
1064594
public function setGroupsToDisplay($groups_to_display)
    {
        if (!is_array($groups_to_display)) {
            throw new TypeException('$groups_to_display must be an array.');
        }
        if (is_array($groups_to_display)) {
            $this->groups_to_display = $groups_to_display;
        } else {
            $this->groups_to_display[] = $groups_to_display;
        }
    }
708153
public function setDisplayType()
    {
        $file_manager = $this->getFileManager();

        /** @var Session $session */
        $session = $this->container->get('session');
        $display_type = $session->get(self::DISPLAY_TYPE_SESSION);

        if ($this->container->get('request')->get('display_type') != null) {
            $display_type = $this->container->get('request')->get('display_type');
            $session->set(self::DISPLAY_TYPE_SESSION, $display_type);
        } else {
            if (is_null($display_type)) {
                $display_type = self::DISPLAY_TYPE_BLOCK;
            }
        }

        $file_body_display = $display_type !== null ? $display_type : self::DISPLAY_TYPE_BLOCK;

        $file_manager->setDisplayType($file_body_display);
    }
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;
    }
571890
public function setDisplayName($displayName)
    {
        /** @var ActionDescriptor $parent */
        $parent = $this->getParent();
        if ($parent instanceof ActionDescriptor) {
            $parentName = $parent->getName();
            if ($displayName === $parentName) {
                $this->displayName = null;
                return $this;
            }
        }
        $this->displayName = $displayName;

        return $this;
    }