Cp_Plgn_Drctry_Cp_Api_v2
Trait to get Plugins from the CP API.
Description
Adds functions for: Get all pages from the CP Dir API Get Plugins from the CP Dir API
Tags
Table of Contents
- adjust_v2_api() : mixed
- The new api is not like the old api.
- get_cp_pages_v2() : array<string|int, mixed>
- Build an array of Pages of the GitHub Results.
- get_cp_plugins_v2() : array<string|int, mixed>
- Retrieve all plugins from the CP API.
Methods
adjust_v2_api()
The new api is not like the old api.
private
adjust_v2_api(array<string|int, mixed> $data) : mixed
Description
Fix that by rebuilding the single plugin objects.
Parameters
- $data
- (array<string|int, mixed>) The raw data array from remote.
Return
(mixed)get_cp_pages_v2()
Build an array of Pages of the GitHub Results.
private
get_cp_pages_v2() : array<string|int, mixed>
Return
(array<string|int, mixed>) $pages The found page numbers in array.get_cp_plugins_v2()
Retrieve all plugins from the CP API.
private
get_cp_plugins_v2() : array<string|int, mixed>