Marketplace extends AppModel
Marketplace
Table of Contents
Methods
| getExtension() | Fetches a specific extension from the marketplace |
| getList() | Fetches a list of extensions |
| search() | Searches the marketplace |
| fetch() | Makes a remote request to fetch the given resource |
Methods
getExtension()
Fetches a specific extension from the marketplace
public
getExtension(int $id) : mixed
Parameters
- $id : int
-
the ID of the extension to fetch
Return values
mixed —An array of extension information, null if the store or extension is not available
getList()
Fetches a list of extensions
public
getList([string $category = null ][, int $page = 1 ]) : mixed
Parameters
- $category : string = null
-
The category to filter by (optional)
- $page : int = 1
-
The page of results to fetch (optional, default 1)
Return values
mixed —An array of extensions, null if the marketplace is not available
search()
Searches the marketplace
public
search(string $query[, int $page = 1 ]) : null
Parameters
- $query : string
-
The search query
- $page : int = 1
-
The page of results to fetch (optional, default 1)
Return values
nullfetch()
Makes a remote request to fetch the given resource
private
fetch(string $url[, array<string|int, mixed> $fields = [] ]) : mixed
Parameters
- $url : string
-
The URL to request
- $fields : array<string|int, mixed> = []
-
An array of parameters to submit with the requested URL
Return values
mixed —An array representing the requested resource, null if the resource could not be found or could not be parsed