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_Dojo |
16 * @package Zend_Dojo |
17 * @subpackage View |
17 * @subpackage View |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 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 * @version $Id: SimpleTextarea.php 20096 2010-01-06 02:05:09Z bkarwin $ |
20 * @version $Id: SimpleTextarea.php 24593 2012-01-05 20:35:02Z matthew $ |
21 */ |
21 */ |
22 |
22 |
23 /** Zend_Dojo_View_Helper_Dijit */ |
23 /** Zend_Dojo_View_Helper_Dijit */ |
24 require_once 'Zend/Dojo/View/Helper/Dijit.php'; |
24 require_once 'Zend/Dojo/View/Helper/Dijit.php'; |
25 |
25 |
27 * dijit.form.SimpleTextarea view helper |
27 * dijit.form.SimpleTextarea view helper |
28 * |
28 * |
29 * @uses Zend_Dojo_View_Helper_Dijit |
29 * @uses Zend_Dojo_View_Helper_Dijit |
30 * @package Zend_Dojo |
30 * @package Zend_Dojo |
31 * @subpackage View |
31 * @subpackage View |
32 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
32 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
34 * @version $Id: SimpleTextarea.php 20096 2010-01-06 02:05:09Z bkarwin $ |
34 * @version $Id: SimpleTextarea.php 24593 2012-01-05 20:35:02Z matthew $ |
35 */ |
35 */ |
36 class Zend_Dojo_View_Helper_SimpleTextarea extends Zend_Dojo_View_Helper_Dijit |
36 class Zend_Dojo_View_Helper_SimpleTextarea extends Zend_Dojo_View_Helper_Dijit |
37 { |
37 { |
38 /** |
38 /** |
39 * @var string Dijit type |
39 * @var string Dijit type |
63 { |
63 { |
64 if (!array_key_exists('id', $attribs)) { |
64 if (!array_key_exists('id', $attribs)) { |
65 $attribs['id'] = $id; |
65 $attribs['id'] = $id; |
66 } |
66 } |
67 $attribs['name'] = $id; |
67 $attribs['name'] = $id; |
68 $attribs['type'] = $this->_elementType; |
|
69 |
68 |
70 $attribs = $this->_prepareDijit($attribs, $params, 'textarea'); |
69 $attribs = $this->_prepareDijit($attribs, $params, 'textarea'); |
71 |
70 |
72 $html = '<textarea' . $this->_htmlAttribs($attribs) . '>' |
71 $html = '<textarea' . $this->_htmlAttribs($attribs) . '>' |
73 . $this->view->escape($value) |
72 . $this->view->escape($value) |