API Documentation

Validate/Isbn.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
version
$Id: Isbn.php 22697 2010-07-26 21:14:47Z alexander $
Classes
Zend_Validate_Isbn

Description

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.

Zend_Validate_Isbn

Extends from
Zend_Validate_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
Constants
AUTO
ISBN10
ISBN13
INVALID
NO_ISBN
Properties
$_messageTemplates
$_type
$_separator
Methods
__construct
_detectFormat
isValid
setSeparator
getSeparator
setType
getType

Description

Constants

AUTO

 AUTO = 'auto'

Details

value
auto

ISBN10

 ISBN10 = '10'

Details

value
10

ISBN13

 ISBN13 = '13'

Details

value
13

INVALID

 INVALID = 'isbnInvalid'

Details

value
isbnInvalid

NO_ISBN

 NO_ISBN = 'isbnNoIsbn'

Details

value
isbnNoIsbn

Properties

$_messageTemplates

array $_messageTemplates = 'array'

Validation failure message template definitions.

Details

$_messageTemplates
array
visibility
protected
default
array
final
false
static
false

$_separator

string $_separator = ''

Separator character.

Details

$_separator
string
visibility
protected
default
final
false
static
false

$_type

string $_type = 'self'

Allowed type.

Details

$_type
string
visibility
protected
default
self
final
false
static
false

Methods

__construct

__construct( Zend_Config|array $options = array ) : void

Set up options.

Arguments
$options
Zend_Configarray
Details
visibility
public
final
false
static
false
throws
When $options is not valid

_detectFormat

_detectFormat( ) : string

Detect input format.

Output
string
Details
visibility
protected
final
false
static
false

getSeparator

getSeparator( ) : string

Get separator characters.

Output
string
Details
visibility
public
final
false
static
false

getType

getType( ) : string

Get allowed ISBN type.

Output
string
Details
visibility
public
final
false
static
false

isValid

isValid( string $value ) : boolean

Defined by Zend_Validate_Interface.

Returns true if and only if $value is a valid ISBN.

Arguments
$value
string
Output
boolean
Details
visibility
public
final
false
static
false

setSeparator

setSeparator( string $separator ) : Zend_Validate_Isbn

Set separator characters.

It is allowed only empty string, hyphen and space.

Arguments
$separator
string
Output
Zend_Validate_Isbn
Provides a fluent interface
Details
visibility
public
final
false
static
false
throws
When $separator is not valid

setType

setType( string $type ) : Zend_Validate_Isbn

Set allowed ISBN type.

Arguments
$type
string
Output
Zend_Validate_Isbn
Provides a fluent interface
Details
visibility
public
final
false
static
false
throws
When $type is not valid
Documentation was generated by DocBlox.