ISBN Class
This class provides ISBN validation and conversion functionality.
category |
VuFind |
---|---|
package |
Code |
author |
Demian Katz demian.katz@villanova.edu |
license |
http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
link |
Main Page |
__construct(string $raw)
string
Raw ISBN string to convert/validate.
get10() : mixed
mixed
ISBN, or false if invalid/incompatible.
get13() : mixed
mixed
ISBN, or false if invalid/incompatible.
getISBN10CheckDigit(string $isbn) : string
string
The first 9 digits of an ISBN-10.
string
The check digit.
getISBN13CheckDigit(string $isbn) : string
string
The first 12 digits of an ISBN-13.
string
The check digit.
isValid() : boolean
boolean
isValidISBN10(string $isbn) : boolean
string
The ISBN-10 to test.
boolean
isValidISBN13(string $isbn) : boolean
string
The ISBN-13 to test.
boolean
normalizeISBN(string $raw) : string
These ISBN characters may be separated by any number of '.', '-', '_' and whitespace characters; the separation characters are removed. A lower x is converted to an upper X.
string
ISBN to clean up.
string
Normalized ISBN.
raw : string
var |
---|
string
valid : boolean
var |
---|
boolean