Documentation

ProductBase
in package
implements Product

Class ProductBase

Template for all product types

Interfaces, Classes, Traits and Enums

Product
Interface Product

Table of Contents

$api  : Webservice|null
$data  : array<string|int, mixed>
__construct()  : void
Constructor
isAudiobook()  : bool
Checks whether this is an audiobook
isBoardgame()  : bool
Checks whether this is a boardgame
isBook()  : bool
Checks whether this is a book
isCalendar()  : bool
Checks whether this is a calendar
isEbook()  : bool
Checks whether this is an eBook
isHardcover()  : bool
Checks whether this is a hardcover book
isItem()  : bool
Checks whether this is an item
isMap()  : bool
Checks whether this is a map
isMedia()  : bool
Checks whether this is a medium
isMovie()  : bool
Checks whether this is a movie
isMusic()  : bool
Checks whether this is music
isNonbook()  : bool
Checks whether this is a generic item
isNotes()  : bool
Checks whether these are notes
isSchoolbook()  : bool
Checks whether this is a schoolbook
isSoftcover()  : bool
Checks whether this is a softcover book
isSoftware()  : bool
Checks whether this is software
isSound()  : bool
Checks whether this is a sound storage medium
isStationery()  : bool
Checks whether this is stationery
isToy()  : bool
Checks whether this is a toy
isVideogame()  : bool
Checks whether this is a videogame
type()  : string
Detects product type

Properties

Methods

__construct()

Constructor

public __construct(array<string|int, mixed> $data[, Webservice $api = null ]) : void
Parameters
$data : array<string|int, mixed>

Source data as fetched from KNV's API

$api : Webservice = null

Object granting access to KNV's API

Return values
void

isAudiobook()

Checks whether this is an audiobook

public isAudiobook() : bool
Return values
bool

isBoardgame()

Checks whether this is a boardgame

public isBoardgame() : bool
Return values
bool

isBook()

Checks whether this is a book

public isBook() : bool
Return values
bool

isCalendar()

Checks whether this is a calendar

public isCalendar() : bool
Return values
bool

isEbook()

Checks whether this is an eBook

public isEbook() : bool
Return values
bool

isHardcover()

Checks whether this is a hardcover book

public isHardcover() : bool
Return values
bool

isItem()

Checks whether this is an item

public isItem() : bool
Return values
bool

isMap()

Checks whether this is a map

public isMap() : bool
Return values
bool

isMedia()

Checks whether this is a medium

public isMedia() : bool
Return values
bool

isMovie()

Checks whether this is a movie

public isMovie() : bool
Return values
bool

isMusic()

Checks whether this is music

public isMusic() : bool
Return values
bool

isNonbook()

Checks whether this is a generic item

public isNonbook() : bool
Return values
bool

isNotes()

Checks whether these are notes

public isNotes() : bool
Return values
bool

isSchoolbook()

Checks whether this is a schoolbook

public isSchoolbook() : bool
Return values
bool

isSoftcover()

Checks whether this is a softcover book

public isSoftcover() : bool
Return values
bool

isSoftware()

Checks whether this is software

public isSoftware() : bool
Return values
bool

isSound()

Checks whether this is a sound storage medium

public isSound() : bool
Return values
bool

isStationery()

Checks whether this is stationery

public isStationery() : bool
Return values
bool

isToy()

Checks whether this is a toy

public isToy() : bool
Return values
bool

isVideogame()

Checks whether this is a videogame

public isVideogame() : bool
Return values
bool

type()

Detects product type

public type() : string
Return values
string

Search results