Get the paths to publish.

@param  string  $provider
@param  string  $group
@return array
430020
public static function pathsToPublish($provider = null, $group = null)
	{
		if ($group && array_key_exists($group, static::$publishGroups))
		{
			return static::$publishGroups[$group];
		}

		if ($provider && array_key_exists($provider, static::$publishes))
		{
			return static::$publishes[$provider];
		}

		if ($group || $provider)
		{
			return [];
		}

		$paths = [];

		foreach (static::$publishes as $class => $publish)
		{
			$paths = array_merge($paths, $publish);
		}

		return $paths;
	}
764548
public function getUserGroupCharacters(Group $group = null): Collection
    {

        if (! $group)
            return collect();

        return Group::with('users')->find($group->id)->users;
    }
168112
public function getAllPermissionPathsForGroup($groupId)
    {
        $groupPermissions = $this->find('all')
            ->select('path')
            ->where(['group_id' => $groupId])
            ->hydrate(false)
            ->toArray();

        return Hash::extract($groupPermissions, '{n}.path');
    }
697687
public function findByGroup(Group $group)
    {
        return $this->createQueryBuilder('o')
            ->select('o.id', 'o.name')
            ->join('o.groups', 'g')
            ->where('g = :group')
            ->groupBy('o.id')
            ->setParameter(':group', $group)
            ->getQuery()
            ->getArrayResult();
    }
940390
protected function getDaxkoLocations($group = FALSE) {
    $locations_config = $this->daxkoConfig->get('locations');
    $locations = $this->parseGrouppedSetting($locations_config, $group);

    if (!$group) {
      return $locations;
    }

    $numericalKeyedLocations = [];
    foreach ($locations as $label => $value) {
      $numericalKeyedLocations[] = ['value' => $value, 'label' => $label];
    }

    return $numericalKeyedLocations;
  }
579863
public function getSitesFromGroup($group)
    {
        $db = $this->getDb();
        $sites = $db->fetchAll("SELECT * FROM " . $this->table . "
                                WHERE `group` = ?", $group);

        return $sites;
    }
100543
public function getProviderQueries(string $provider): array
    {
        return array_filter($this->data['queries'], function ($data) use ($provider) {
            return $data['providerName'] === $provider;
        });
    }
430481
public function getGroupPath()
    {
        if (!$this->_groupPath) {
            $path = Vitex::getInstance()->getConfig('router.grouppath');
            $this->setGroupPath($path);
        }
        return $this->_groupPath;
    }
485006
public static function getGroupSetting ($group, $setting)
	{
		return isset (self::$resourceSettings[$group][$setting])? self::$resourceSettings[$group][$setting] : FALSE;
	}
987503
public static function getClientCountByGroup($group = '')
    {
        $gateway_data             = GatewayProtocol::$empty;
        $gateway_data['cmd']      = GatewayProtocol::CMD_GET_CLIENT_COUNT_BY_GROUP;
        $gateway_data['ext_data'] = $group;
        $total_count              = 0;
        $all_buffer_array         = self::getBufferFromAllGateway($gateway_data);
        foreach ($all_buffer_array as $local_ip => $buffer_array) {
            foreach ($buffer_array as $local_port => $count) {
                if ($count) {
                    $total_count += $count;
                }
            }
        }
        return $total_count;
    }
413167
protected function publishesAdmin(array $paths, $group = null)
	{
		$class = get_class($this);

		if ( ! array_key_exists($class, static::$publishesAdmin))
		{
			static::$publishesAdmin[$class] = [];
		}

		static::$publishesAdmin[$class] = array_merge(static::$publishesAdmin[$class], $paths);

		if ($group)
		{
			static::$publishGroupsAdmin[$group] = $paths;
		}
	}
854618
public function scripts($group, array $assets = [], $prefix = null)
    {
        $scripts = [];

        if (!isset($assets[$group]) || count($assets[$group]) == 0) {
            return $scripts;
        }

        is_null($prefix) || $this->path = rtrim($prefix, '/');

        foreach ($this->resolver->arrange($assets[$group]) as $data) {
            $path = $this->getAssetSourceUrl($data['source']);

            !starts_with($path, '/') && $group !== 'inline' ? $path = '/' . $path : null;

            array_push($scripts, $path);
        }
        return $scripts;
    }
120358
protected function getAssetSandboxSourceUrl(&$source, $group = null)
    {
        if (is_null(self::$sandboxPath)) {

            if (!Foundation::bound('antares.version')) {
                self::$sandboxPath = '';
            }
            $sandboxMode = app('request')->get('sandbox');
            if ($sandboxMode and $group !== 'inline') {
                $publicPath = Foundation::make('Antares\Updater\Contracts\Requirements')->setVersion($sandboxMode)->getPublicPath();
                $path       = last(explode(DIRECTORY_SEPARATOR, $publicPath));
                $source     = $path . '/' . $source;
            }
            return false;
        }
        return self::$sandboxPath;
    }
1243975
public function paths(Source $source = null) {
		if ($source) {
			$this->applyStrategy($source);
		}
		return $this->_paths;
	}
1329744
protected function GetAdminGroups($group = "")
	{
		$keys = array_keys($this->GetAdminModulesList());
		if ($group != "")
		{
			if (in_array($group, $keys))
			{
				$keys = array($group);
			}
			else
			{
				$keys = array();
			}
		}
		
		$arr = new ArrayDataset($keys, "name");
		return $arr->getIterator();
	}
1196771
def group_path(cls, project, group):
        """"""
        return google.api_core.path_template.expand(
            "projects/{project}/groups/{group}", project=project, group=group
        )
1001654
public function ToString( $provider = null )
	{
		$result = "";
		if ( $this->S ) $result .= "-";
		if ( $this->IsLocal )
			$result .= $this->Value->format("--m-d");
		else
			if ( $this->Value->getOffset() == 0 )
				$result .= $this->Value->format("--m-d\Z");
			else
				$result .= $this->Value->format("--m-dP");

		return $result;
	}