You are here

private function SqlGroupGraphStorage::loadMap in Subgroup (Graph) 1.0.x

Load the ancestry mapping for a group if it isn't loaded already.

9 calls to SqlGroupGraphStorage::loadMap()
SqlGroupGraphStorage::getAncestors in src/Graph/SqlGroupGraphStorage.php
Gets all ancestor parent groups of the given child group.
SqlGroupGraphStorage::getDescendants in src/Graph/SqlGroupGraphStorage.php
Gets all descendant child groups of the given parent group.
SqlGroupGraphStorage::getDirectAncestors in src/Graph/SqlGroupGraphStorage.php
SqlGroupGraphStorage::getDirectDescendants in src/Graph/SqlGroupGraphStorage.php
SqlGroupGraphStorage::getPath in src/Graph/SqlGroupGraphStorage.php
Use the Breadth-first search algoritm to find the path between groups.

... See full list

File

src/Graph/SqlGroupGraphStorage.php, line 496

Class

SqlGroupGraphStorage
SQL based storage of the group relationship graph.

Namespace

Drupal\ggroup\Graph

Code

private function loadMap($gid) {
  if (empty($this->loaded[$gid])) {
    $this
      ->loadGroupMapping($gid);
  }
}