/** * Build a realm tree structure * * This method calls {@link buildRealmTree} to build a realm tree data * structure. The returned structure does not contain any auth data * as it would not make sense in this context. The main use for this is * to get a hierarchical view of all the realms. * * @return array A realm tree data structure */ protected function buildRealmTreeForRealm() { return AuthUtil::buildRealmTree(null, null); }
public static function buildRealmTreeForUser($uid) { return AuthUtil::buildRealmTree($uid, false); }