Method | Description | |
---|---|---|
__construct ( Settings $settings, string $section_id = null ) | Constructor. | |
get_data ( string $key, string $default = null ) : mixed | Get a specific element of section data from Apple News | |
get_sections ( ) : array | Get all available sections. | |
perform ( ) : object | Get the section data from Apple News. |
public __construct ( Settings $settings, string $section_id = null ) | ||
$settings | Settings | |
$section_id | string |
public get_sections ( ) : array | ||
return | array |