ListableRemoteInterface
API for downloading a list of available packages from a server.
Table of Contents
Methods
- getAvailablePackages() : void
- Fetches a list of available packages / extensions from a remote source.
- getLastUpdate() : DateTimeInterface
- Get the time when the remote was updated the last time.
- needsUpdate() : bool
- Checks whether the remote is outdated and should fetch latest updates.
Methods
getAvailablePackages()
Fetches a list of available packages / extensions from a remote source.
public
getAvailablePackages([bool $force = false ]) : void
Parameters
- $force : bool = false
getLastUpdate()
Get the time when the remote was updated the last time.
public
getLastUpdate() : DateTimeInterface
Return values
DateTimeInterfaceneedsUpdate()
Checks whether the remote is outdated and should fetch latest updates.
public
needsUpdate() : bool