|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
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. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Dojo |
|
17 * @subpackage View |
|
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id: PasswordTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $ |
|
21 */ |
|
22 |
|
23 /** Zend_Dojo_View_Helper_ValidationTextBox */ |
|
24 require_once 'Zend/Dojo/View/Helper/ValidationTextBox.php'; |
|
25 |
|
26 /** |
|
27 * Dojo ValidationTextBox dijit tied to password input |
|
28 * |
|
29 * @uses Zend_Dojo_View_Helper_Dijit |
|
30 * @package Zend_Dojo |
|
31 * @subpackage View |
|
32 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
34 */ |
|
35 class Zend_Dojo_View_Helper_PasswordTextBox extends Zend_Dojo_View_Helper_ValidationTextBox |
|
36 { |
|
37 /** |
|
38 * HTML element type |
|
39 * @var string |
|
40 */ |
|
41 protected $_elementType = 'password'; |
|
42 |
|
43 /** |
|
44 * dijit.form.ValidationTextBox tied to password input |
|
45 * |
|
46 * @param string $id |
|
47 * @param mixed $value |
|
48 * @param array $params Parameters to use for dijit creation |
|
49 * @param array $attribs HTML attributes |
|
50 * @return string |
|
51 */ |
|
52 public function passwordTextBox($id, $value = null, array $params = array(), array $attribs = array()) |
|
53 { |
|
54 return $this->_createFormElement($id, $value, $params, $attribs); |
|
55 } |
|
56 } |