DiscoveryService¶
-
class
OC\OCS\DiscoveryService¶ Source: lib/private/OCS/DiscoveryService.php#39 Implements: OCP\OCS\IDiscoveryService
Properties¶
Methods¶
-
public
OC\OCS\DiscoveryService::__construct($cacheFactory, $clientService)¶ Source: Parameters: - $cacheFactory (
OCP\ICacheFactory) - $clientService (
OCP\Http\Client\IClientService)
- $cacheFactory (
-
public
OC\OCS\DiscoveryService::discover($remote, $service, $skipCache=false)¶ - Discover OCS end-pointsIf no valid discovery data is found the defaults are returned
Source: Parameters: - $remote (string)
- $service (string) the service you want to discover
- $skipCache (bool) We won’t check if the data is in the cache. This is usefull if a background job is updating the status
Returns: array
-
protected
OC\OCS\DiscoveryService::getEndpoints($decodedServices, $service)¶ - get requested end-points from the requested service
Source: Parameters: - $decodedServices (array)
- $service (string)
Returns: array
-
protected
OC\OCS\DiscoveryService::isSafeUrl($url)¶ - Returns whether the specified URL includes only safe characters, if notreturns false
Source: Parameters: - $url (string)
Returns: bool