equal
deleted
inserted
replaced
12 * obtain it through the world-wide-web, please send an email |
12 * obtain it through the world-wide-web, please send an email |
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Validate |
16 * @package Zend_Validate |
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @version $Id: Isbn.php 22668 2010-07-25 14:50:46Z thomas $ |
19 * @version $Id: Isbn.php 24593 2012-01-05 20:35:02Z matthew $ |
20 */ |
20 */ |
21 |
21 |
22 /** |
22 /** |
23 * @see Zend_Validate_Abstract |
23 * @see Zend_Validate_Abstract |
24 */ |
24 */ |
25 require_once 'Zend/Validate/Abstract.php'; |
25 require_once 'Zend/Validate/Abstract.php'; |
26 |
26 |
27 /** |
27 /** |
28 * @category Zend |
28 * @category Zend |
29 * @package Zend_Validate |
29 * @package Zend_Validate |
30 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
30 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
31 * @license http://framework.zend.com/license/new-bsd New BSD License |
31 * @license http://framework.zend.com/license/new-bsd New BSD License |
32 */ |
32 */ |
33 class Zend_Validate_Isbn extends Zend_Validate_Abstract |
33 class Zend_Validate_Isbn extends Zend_Validate_Abstract |
34 { |
34 { |
35 const AUTO = 'auto'; |
35 const AUTO = 'auto'; |
43 * |
43 * |
44 * @var array |
44 * @var array |
45 */ |
45 */ |
46 protected $_messageTemplates = array( |
46 protected $_messageTemplates = array( |
47 self::INVALID => "Invalid type given. String or integer expected", |
47 self::INVALID => "Invalid type given. String or integer expected", |
48 self::NO_ISBN => "'%value%' is no valid ISBN number", |
48 self::NO_ISBN => "'%value%' is not a valid ISBN number", |
49 ); |
49 ); |
50 |
50 |
51 /** |
51 /** |
52 * Allowed type. |
52 * Allowed type. |
53 * |
53 * |