Documentation

AnimeGenreListParser
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, AnimeGenreListItem>
getExplicitGenres()  : array<string|int, mixed>|array<string|int, AnimeGenreListItem>
getGenres()  : array<string|int, mixed>|array<string|int, AnimeGenreListItem>
getModel()  : AnimeGenreList
Return the model
getThemes()  : array<string|int, mixed>|array<string|int, AnimeGenreListItem>
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

Methods

__construct()

GenreParser constructor.

public __construct(Crawler $crawler) : mixed
Parameters
$crawler : Crawler

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

On this page

Search results