|
Revision 9046, 1.4 kB
(checked in by FabianLange, 4 years ago)
|
1.1: fixed @param phpdoc to fit specs in widgets (refs #2991)
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
class sfWidgetFormTextarea extends sfWidgetForm |
|---|
| 20 |
{ |
|---|
| 21 |
|
|---|
| 22 |
* @param array $options An array of options |
|---|
| 23 |
* @param array $attributes An array of default HTML attributes |
|---|
| 24 |
* |
|---|
| 25 |
* @see sfWidgetForm |
|---|
| 26 |
*/ |
|---|
| 27 |
protected function configure($options = array(), $attributes = array()) |
|---|
| 28 |
{ |
|---|
| 29 |
$this->setAttribute('rows', 4); |
|---|
| 30 |
$this->setAttribute('cols', 30); |
|---|
| 31 |
} |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
* @param string $name The element name |
|---|
| 35 |
* @param string $value The value displayed in this widget |
|---|
| 36 |
* @param array $attributes An array of HTML attributes to be merged with the default HTML attributes |
|---|
| 37 |
* @param array $errors An array of errors for the field |
|---|
| 38 |
* |
|---|
| 39 |
* @return string An HTML tag string |
|---|
| 40 |
* |
|---|
| 41 |
* @see sfWidgetForm |
|---|
| 42 |
*/ |
|---|
| 43 |
public function render($name, $value = null, $attributes = array(), $errors = array()) |
|---|
| 44 |
{ |
|---|
| 45 |
return $this->renderContentTag('textarea', self::escapeOnce($value), array_merge(array('name' => $name), $attributes)); |
|---|
| 46 |
} |
|---|
| 47 |
} |
|---|
| 48 |
|
|---|