The lists that this venue appears on.
@param string $venueId
@return array
481872
public function lists($venueId)
    {

        $resource = '/venues/' . $venueId . '/listed';
        $response = $this->makeApiRequest($resource);

        if(property_exists($response, 'lists')) {
            return $response->lists->groups;
        }

        return array();

    }
809103
public function search(array $params = array())
    {
        $resource = '/venues/search';
        $response = $this->makeApiRequest($resource, $params);

        if(property_exists($response, 'venues')) {
            return $response->venues;
        }
        
        return array();
    }
191817
public function listTreeFolderAction($siteId)
    {
        $folders = $this->get('open_orchestra_media.repository.media_folder')->findFolderTree($siteId);

        return $this->get('open_orchestra_api.transformer_manager')->transform('folder_tree', $folders);
    }
192042
private function getPriceIndexDimensions($websiteId)
    {
        if (!array_key_exists($websiteId, $this->dimensionsByWebsite)) {
            $indexDimensions = $this->getAllPriceIndexDimensions();

            $relevantDimensions = [];
            foreach ($indexDimensions as $dimensions) {
                if (array_key_exists(WebsiteDimensionProvider::DIMENSION_NAME, $dimensions)) {
                    $websiteDimension = $dimensions[WebsiteDimensionProvider::DIMENSION_NAME];
                    if ((string) $websiteDimension->getValue() == $websiteId) {
                        $relevantDimensions[] = $dimensions;
                    }
                } else {
                    $relevantDimensions[] = $dimensions;
                }
            }

            $this->dimensionsByWebsite[$websiteId] = $relevantDimensions;
        }

        return $this->dimensionsByWebsite[$websiteId];
    }
1336279
protected function getDbRoutes($siteId = null): array
    {
        if ($siteId === null) {
            $siteId = Craft::$app->getSites()->currentSite->id;
        }
        if ($siteId === 'global') {
            $siteId = null;
        }
        // If we're on Craft 3.1 or later, just return the array from getProjectConfigRoutes();
        if (RouteMap::$craft31) {
            return Craft::$app->getRoutes()->getProjectConfigRoutes();
        }

        // Normalize the URL
        $results = (new Query())
            ->select(['uriPattern', 'template'])
            ->from(['{{%routes}}'])
            ->where([
                'or',
                ['siteId' => $siteId],
            ])
            ->orderBy(['sortOrder' => SORT_ASC])
            ->all();

        return ArrayHelper::map($results, 'uriPattern', function ($results) {
            return ['template' => $results['template']];
        });
    }
700401
private function getMenuItems($rootLocationId)
    {
        $rootLocation = $this->locationService->loadLocation($rootLocationId);

        $query = new LocationQuery();

        $query->query = new Criterion\LogicalAnd(
            array(
                new Criterion\ContentTypeIdentifier($this->getTopMenuContentTypeIdentifierList()),
                new Criterion\Visibility(Criterion\Visibility::VISIBLE),
                new Criterion\Location\Depth(
                    Criterion\Operator::BETWEEN,
                    array($rootLocation->depth + 1, $rootLocation->depth + 2)
                ),
                new Criterion\Subtree($rootLocation->pathString),
                new Criterion\LanguageCode($this->configResolver->getParameter('languages')),
            )
        );
        $query->sortClauses = array(new Query\SortClause\Location\Path());
        $query->performCount = false;

        return $this->searchService->findLocations($query)->searchHits;
    }
938247
public function adminAction($siteId = null)
    {
        $contextManager = $this->get('open_orchestra_backoffice.context_backoffice_manager');

        if ($siteId) {
            $site = $this->get('open_orchestra_model.repository.site')->findOneBySiteId($siteId);
            $contextManager->setSite($site->getSiteId(), $site->getName(), $site->getDefaultLanguage(), $site->getLanguages());
        }
        $clientConfiguration = $this->get('open_orchestra_backoffice.manager.client_configuration');

        return $this->render('OpenOrchestraBackofficeBundle::layout.html.twig' , array(
            'clientConfiguration' => $clientConfiguration->getClientConfiguration()
        ));
    }
418002
public function getAllLocationIds($contentId)
    {
        try {
            return $this->innerGateway->getAllLocationIds($contentId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
606982
public function findAllowedSites($siteId)
    {
        $qb = $this->createQueryBuilder();
        $qb->field('allowedSites')->in(array($siteId));

        return $qb->getQuery()->execute();
    }
1054391
public function getActiveSiteTheme($siteId)
    {
        $qb = $this->getEntityManager()->createQueryBuilder();
        /** @var $query \Doctrine\ORM\Query */

        $query = $qb->select('e, t')
            ->from($this->_entity, 'e')
            ->innerJoin('e.themeId', 't')
            ->where('e.siteId = :id')
            ->andWhere('e.isActive = 1')
            ->setMaxResults(1)
            ->setParameter('id', $siteId)
            ->getQuery();

        /** @var $result \PageBuilder\Entity\Join\SiteTheme */
        $result = $query->getOneOrNullResult(AbstractQuery::HYDRATE_OBJECT);
        if ($result) {
            return $result->getThemeId();
        } else {
            return $result;
        }
    }
55213
public function buildPagesResourceId(
        $siteId
    ) {
        return $this->resourceName->get(
            ResourceName::RESOURCE_SITES,
            $siteId,
            ResourceName::RESOURCE_PAGES
        );
    }
1071518
protected function getSiteForRootPageId(int $pageId): array
    {
        return is_array($this->sites[$pageId]) ? $this->sites[$pageId] : [];
    }
197829
private function getPriceIndexDimensionsTables($websiteId)
    {
        $tables = [];

        $indexDimensions = $this->getPriceIndexDimensions($websiteId);
        foreach ($indexDimensions as $dimensions) {
            $tables[] = $this->priceTableResolver->resolve('catalog_product_index_price', $dimensions);
        }

        return $tables;
    }
603944
public static function getList($excludeId = 0)
    {
        $list = [];
        $query = self::find()->orderBy('position DESC, title');

        if (!empty($excludeId)) {
            $query->where('`id` != :excludeId', ['excludeId' => $excludeId]);
        }

        $models = $query->all();

        foreach ($models as $model) {
            $list[$model->id] = $model->title;
        }

        return $list;
    }
281364
public function index($locationId)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $location = Location::findOrFail($locationId);
        $this->authorize('view', $location);
        return $this->respondRelatedAddresses($locationId, 'location');
    }
1312463
protected function getAnchorsInPage($id)
    {
        $page = SiteTree::get()->byID($id);

        if (!$page || !$page->canView()) {
            return [];
        }

        return $page->getAnchorsOnPage();
    }
740227
public function getList($listId)
    {
        foreach ($this->lists as $id => $listParameters) 
        {
            if($id == $listId)
            {
                return $this->createList($id, $listParameters);
            }
        }
    }