MangaGenreListParser
in package
implements
ParserInterface
Class GenreParser
Table of Contents
Interfaces
- ParserInterface
- Interface ParserInterface
Properties
- $crawler : Crawler
Methods
- __construct() : mixed
- GenreParser constructor.
- getDemographics() : array<string|int, mixed>|array<string|int, MangaGenreListItem>
- getExplicitGenres() : array<string|int, mixed>|array<string|int, MangaGenreListItem>
- getGenres() : array<string|int, mixed>|array<string|int, MangaGenreListItem>
- getModel() : MangaGenreList
- Return the model
- getThemes() : array<string|int, mixed>|array<string|int, MangaGenreListItem>
- genreLinkSections() : Crawler
- The four genre sections (Genres / Explicit Genres / Themes / Demographics) are the `genre-link` blocks whose links are genre URLs. MAL prepends page-specific `genre-link` blocks before them (e.g. the "adapted from" source filter on manga.php), so the sections are anchored by content, not by block position.
Properties
$crawler
private
Crawler
$crawler
Methods
__construct()
GenreParser constructor.
public
__construct(Crawler $crawler) : mixed
Parameters
- $crawler : Crawler
getDemographics()
public
getDemographics() : array<string|int, mixed>|array<string|int, MangaGenreListItem>
Tags
Return values
array<string|int, mixed>|array<string|int, MangaGenreListItem>getExplicitGenres()
public
getExplicitGenres() : array<string|int, mixed>|array<string|int, MangaGenreListItem>
Tags
Return values
array<string|int, mixed>|array<string|int, MangaGenreListItem>getGenres()
public
getGenres() : array<string|int, mixed>|array<string|int, MangaGenreListItem>
Tags
Return values
array<string|int, mixed>|array<string|int, MangaGenreListItem>getModel()
Return the model
public
getModel() : MangaGenreList
Tags
Return values
MangaGenreListgetThemes()
public
getThemes() : array<string|int, mixed>|array<string|int, MangaGenreListItem>
Tags
Return values
array<string|int, mixed>|array<string|int, MangaGenreListItem>genreLinkSections()
The four genre sections (Genres / Explicit Genres / Themes / Demographics) are the `genre-link` blocks whose links are genre URLs. MAL prepends page-specific `genre-link` blocks before them (e.g. the "adapted from" source filter on manga.php), so the sections are anchored by content, not by block position.
private
genreLinkSections() : Crawler
Return values
Crawler —the four section blocks, in Genres…Demographics order