equal
deleted
inserted
replaced
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_Captcha |
16 * @package Zend_Captcha |
17 * @subpackage Adapter |
17 * @subpackage Adapter |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 */ |
20 */ |
21 |
21 |
22 /** @see Zend_Captcha_Adapter */ |
22 /** @see Zend_Captcha_Adapter */ |
23 require_once 'Zend/Captcha/Adapter.php'; |
23 require_once 'Zend/Captcha/Adapter.php'; |
31 * Provides some utility functionality to build on |
31 * Provides some utility functionality to build on |
32 * |
32 * |
33 * @category Zend |
33 * @category Zend |
34 * @package Zend_Captcha |
34 * @package Zend_Captcha |
35 * @subpackage Adapter |
35 * @subpackage Adapter |
36 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
36 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
37 * @license http://framework.zend.com/license/new-bsd New BSD License |
37 * @license http://framework.zend.com/license/new-bsd New BSD License |
38 * @version $Id: Base.php 24593 2012-01-05 20:35:02Z matthew $ |
38 * @version $Id$ |
39 */ |
39 */ |
40 abstract class Zend_Captcha_Base extends Zend_Validate_Abstract implements Zend_Captcha_Adapter |
40 abstract class Zend_Captcha_Base extends Zend_Validate_Abstract implements Zend_Captcha_Adapter |
41 { |
41 { |
42 /** |
42 /** |
43 * Element name |
43 * Element name |
76 |
76 |
77 /** |
77 /** |
78 * Set name |
78 * Set name |
79 * |
79 * |
80 * @param string $name |
80 * @param string $name |
|
81 * @return Zend_Captcha_Adapter |
81 */ |
82 */ |
82 public function setName($name) |
83 public function setName($name) |
83 { |
84 { |
84 $this->_name = $name; |
85 $this->_name = $name; |
85 return $this; |
86 return $this; |
87 |
88 |
88 /** |
89 /** |
89 * Constructor |
90 * Constructor |
90 * |
91 * |
91 * @param array|Zend_Config $options |
92 * @param array|Zend_Config $options |
92 * @return void |
|
93 */ |
93 */ |
94 public function __construct($options = null) |
94 public function __construct($options = null) |
95 { |
95 { |
96 // Set options |
96 // Set options |
97 if (is_array($options)) { |
97 if (is_array($options)) { |