Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
AUTO = 'auto'
ISBN10 = '10'
ISBN13 = '13'
INVALID = 'isbnInvalid'
NO_ISBN = 'isbnNoIsbn'
array $_messageTemplates = 'array'
Validation failure message template definitions.
string $_separator = ''
Separator character.
string $_type = 'self'
Allowed type.
__construct(
Zend_Config|array $options
=
array
)
:
void
Set up options.
_detectFormat(
)
:
string
Detect input format.
getSeparator(
)
:
string
Get separator characters.
getType(
)
:
string
Get allowed ISBN type.
isValid(
string $value
)
:
boolean
Defined by Zend_Validate_Interface.
Returns true if and only if $value is a valid ISBN.
setSeparator(
string $separator
)
:
Zend_Validate_Isbn
Set separator characters.
It is allowed only empty string, hyphen and space.
setType(
string $type
)
:
Zend_Validate_Isbn
Set allowed ISBN type.