Documentation

Butler
in package

Class Butler

This class contains useful helper functions - pretty much like a butler

Table of Contents

downloadCover()  : bool
Downloads cover images from the German National Library (DNB)
reverseName()  : string
Reverses name, going from 'Doe, John' to 'John Doe'

Methods

downloadCover()

Downloads cover images from the German National Library (DNB)

public static downloadCover(string $isbn[, mixed $file = null ][, string $ua = null ]) : bool
Parameters
$isbn : string

A given product's EAN/ISBN

$file : mixed = null

Path to download file OR file-like object

$ua : string = null

User-Agent used when downloading cover images

Return values
bool

Download status

reverseName()

Reverses name, going from 'Doe, John' to 'John Doe'

public static reverseName(string $string[, string $delimiter = ',' ]) : string
Parameters
$string : string

Name to be reversed

$delimiter : string = ','
Return values
string

Search results