Class

eZISBN13

class eZISBN13

Constants

PREFIX_LENGTH

CHECK_LENGTH

LENGTH

PREFIX_978

PREFIX_979

Properties

$Prefix
$RegistrationGroup
$RegistrantElement
$PublicationElement
$CheckDigit

Methods

__construct(string|null $isbnNr = null, string $separator = '-')

Constructor

attributes()

attribute($value)

hasAttribute($value)

hasRangeData()

formatedISBNValue($isbnNr = false, $error, $separator = '-')

extractISBNNumber($isbnNr = false, $error)

validate($isbnNr, $error)

validateISBN13Checksum($isbnNr, $error)

Details

at line 34
public __construct(string|null $isbnNr = null, string $separator = '-')

Constructor

Parameters

string|null $isbnNr The ISBN-13 number, e.g. 978-0-11-000222-4
string $separator The hyphen used in the ISBN number to make the ISBN number more visible.

at line 54
public attributes()

at line 66
public attribute($value)

Parameters

$value

at line 97
public hasAttribute($value)

Parameters

$value

at line 106
public hasRangeData()

at line 138
public formatedISBNValue($isbnNr = false, $error, $separator = '-')

Parameters

$isbnNr
$error
$separator

at line 225
public extractISBNNumber($isbnNr = false, $error)

Parameters

$isbnNr
$error

at line 327
public validate($isbnNr, $error)

Parameters

$isbnNr
$error

at line 345
public validateISBN13Checksum($isbnNr, $error)

Parameters

$isbnNr
$error