Author: KRavEN
Date: 2010-05-19 20:42:32 +0200 (Wed, 19 May 2010)
New Revision: 29533
Added:
plugins/ExtjsGeneratorPlugin/trunk/lib/widget/ExtjsWidgetFormInputTextarea.class.php
Modified:
plugins/ExtjsGeneratorPlugin/trunk/lib/generator/ExtjsFormGenerator.class.php
Log:
Added InputTextArea widget (WIP)
Modified:
plugins/ExtjsGeneratorPlugin/trunk/lib/generator/ExtjsFormGenerator.class.php
===================================================================
---
plugins/ExtjsGeneratorPlugin/trunk/lib/generator/ExtjsFormGenerator.class.php
2010-05-19 16:45:04 UTC (rev 29532)
+++
plugins/ExtjsGeneratorPlugin/trunk/lib/generator/ExtjsFormGenerator.class.php
2010-05-19 18:42:32 UTC (rev 29533)
@@ -113,7 +113,7 @@
break;
case PropelColumnTypes::CLOB:
case PropelColumnTypes::LONGVARCHAR:
- $name = 'Textarea';
+ $name = 'InputTextarea';
break;
case PropelColumnTypes::DATE:
$name = 'Date';
Added:
plugins/ExtjsGeneratorPlugin/trunk/lib/widget/ExtjsWidgetFormInputTextarea.class.php
===================================================================
---
plugins/ExtjsGeneratorPlugin/trunk/lib/widget/ExtjsWidgetFormInputTextarea.class.php
(rev 0)
+++
plugins/ExtjsGeneratorPlugin/trunk/lib/widget/ExtjsWidgetFormInputTextarea.class.php
2010-05-19 18:42:32 UTC (rev 29533)
@@ -0,0 +1,33 @@
+<?php
+
+/*
+ * This file is part of the symfony package.
+ * (c) Fabien Potencier <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+/**
+ * sfWidgetFormInput represents an HTML text input tag.
+ *
+ * @package symfony
+ * @subpackage widget
+ * @author Fabien Potencier <[email protected]>
+ * @version SVN: $Id: sfWidgetFormInputText.class.php 20941 2009-08-08
14:11:51Z Kris.Wallsmith $
+ */
+class ExtjsWidgetFormInputTextarea extends ExtjsWidgetFormInput
+{
+ /**
+ * @param array $options An array of options
+ * @param array $attributes An array of default HTML attributes
+ *
+ * @see sfWidgetForm
+ */
+ protected function configure($options = array(), $attributes = array())
+ {
+ parent::configure($options, $attributes);
+
+ $this->setOption('type', 'TextArea');
+ }
+}
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.