Fetcher¶
-
class
OC\App\AppStore\Fetcher\
Fetcher
¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#44
Constants¶
-
INVALIDATE_AFTER_SECONDS = 3600
Source: lib/private/App/AppStore/Fetcher/Fetcher.php#45
-
RETRY_AFTER_FAILURE_SECONDS = 300
Source: lib/private/App/AppStore/Fetcher/Fetcher.php#46
Properties¶
-
protected static property
OC\App\AppStore\Fetcher\Fetcher::$
appData
¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#49 Type: \OCP\Files\IAppData
-
protected static property
OC\App\AppStore\Fetcher\Fetcher::$
clientService
¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#51 Type: \OCP\Http\Client\IClientService
-
protected static property
OC\App\AppStore\Fetcher\Fetcher::$
timeFactory
¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#53 Type: \OCP\AppFramework\Utility\ITimeFactory
-
protected static property
OC\App\AppStore\Fetcher\Fetcher::$
config
¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#55 Type: \OCP\IConfig
-
protected static property
OC\App\AppStore\Fetcher\Fetcher::$
logger
¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#57 Type: \Psr\Log\LoggerInterface
-
protected static property
OC\App\AppStore\Fetcher\Fetcher::$
fileName
¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#59 Type: string
-
protected static property
OC\App\AppStore\Fetcher\Fetcher::$
endpointName
¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#61 Type: string
-
protected static property
OC\App\AppStore\Fetcher\Fetcher::$
version
¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#63 Type: string
-
protected static property
OC\App\AppStore\Fetcher\Fetcher::$
channel
¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#65 Type: string
Methods¶
-
public
OC\App\AppStore\Fetcher\Fetcher::
__construct
($appDataFactory, $clientService, $timeFactory, $config, $logger)¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#67
-
protected
OC\App\AppStore\Fetcher\Fetcher::
fetch
($ETag, $content)¶ - Fetches the response from the server
Source: Parameters: - $ETag (string)
- $content (string)
Returns: array
-
public
OC\App\AppStore\Fetcher\Fetcher::
get
($allowUnstable=false)¶ - Returns the array with the categories on the appstore server
Source: lib/private/App/AppStore/Fetcher/Fetcher.php#139 Parameters: Returns: array
-
protected
OC\App\AppStore\Fetcher\Fetcher::
getVersion
()¶ - Get the currently Nextcloud version
Source: lib/private/App/AppStore/Fetcher/Fetcher.php#210 Returns: string
-
public
OC\App\AppStore\Fetcher\Fetcher::
setVersion
($version)¶ - Set the current Nextcloud version
Source: Parameters: - $version (string)
-
protected
OC\App\AppStore\Fetcher\Fetcher::
getChannel
()¶ - Get the currently Nextcloud update channel
Source: lib/private/App/AppStore/Fetcher/Fetcher.php#229 Returns: string
-
public
OC\App\AppStore\Fetcher\Fetcher::
setChannel
($channel)¶ - Set the current Nextcloud update channel
Source: Parameters: - $channel (string)
-
protected
OC\App\AppStore\Fetcher\Fetcher::
getEndpoint
()¶ Source: lib/private/App/AppStore/Fetcher/Fetcher.php#244