Author: Jonathan.Wage
Date: 2010-01-11 00:31:59 +0100 (Mon, 11 Jan 2010)
New Revision: 26461
Added:
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentColumnForm.class.php
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentSlotForm.class.php
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalMarkdown.class.php
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalRawHtml.class.php
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalText.class.php
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalTinyMCE.class.php
plugins/sfSympalPlugin/trunk/lib/widget/sfWidgetFormSympalTinyMCE.class.php
Modified:
plugins/sfSympalPlugin/trunk/config/app.yml
plugins/sfSympalPlugin/trunk/lib/util/sfSympalFormToolkit.class.php
Log:
[1.4][sfSympalPlugin][1.0] Massive performance fix for inline editing in dev
mode. Use of class_exists is generally a bad idea for symfony in dev mode since
it reloads autoloading and that is slow!
Modified: plugins/sfSympalPlugin/trunk/config/app.yml
===================================================================
--- plugins/sfSympalPlugin/trunk/config/app.yml 2010-01-10 23:11:15 UTC (rev
26460)
+++ plugins/sfSympalPlugin/trunk/config/app.yml 2010-01-10 23:31:59 UTC (rev
26461)
@@ -118,7 +118,6 @@
label: Markdown Editor
TinyMCE:
label: TinyMCE Rich Text Editor
- widget_class: sfWidgetFormTextareaTinyMCE
widget_options:
config: 'onchange_callback: "sympalTinyMCETriggerSave",
handle_event_callback : "sympalHandleTinyMCEEvent"'
Added:
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentColumnForm.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentColumnForm.class.php
(rev 0)
+++
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentColumnForm.class.php
2010-01-10 23:31:59 UTC (rev 26461)
@@ -0,0 +1,6 @@
+<?php
+
+class sfSympalInlineEditContentColumnForm extends BasesfSympalContentForm
+{
+
+}
\ No newline at end of file
Added:
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentSlotForm.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentSlotForm.class.php
(rev 0)
+++
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentSlotForm.class.php
2010-01-10 23:31:59 UTC (rev 26461)
@@ -0,0 +1,5 @@
+<?php
+
+class sfSympalInlineEditContentSlotForm extends sfSympalContentSlotForm
+{
+}
\ No newline at end of file
Modified: plugins/sfSympalPlugin/trunk/lib/util/sfSympalFormToolkit.class.php
===================================================================
--- plugins/sfSympalPlugin/trunk/lib/util/sfSympalFormToolkit.class.php
2010-01-10 23:11:15 UTC (rev 26460)
+++ plugins/sfSympalPlugin/trunk/lib/util/sfSympalFormToolkit.class.php
2010-01-10 23:31:59 UTC (rev 26461)
@@ -75,11 +75,9 @@
$options = isset($contentSlotTypes[$contentSlot->type]) ?
$contentSlotTypes[$contentSlot->type] : array();
$widgetClass = isset($options['widget_class']) ? $options['widget_class']
: 'sfWidgetFormSympal'.$contentSlot->type;
- $widgetClass = class_exists($widgetClass) ? $widgetClass :
'sfWidgetFormInput';
$widgetOptions = isset($options['widget_options']) ?
$options['widget_options'] : array();
$validatorClass = isset($options['validator_class']) ?
$options['validator_class'] : 'sfValidatorFormSympal'.$contentSlot->type;
- $validatorClass = class_exists($validatorClass) ? $validatorClass :
'sfValidatorPass';
$validatorOptions = isset($options['validator_options']) ?
$options['validator_options'] : array();
$widgetSchema['value'] = new $widgetClass($widgetOptions);
Added:
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalMarkdown.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalMarkdown.class.php
(rev 0)
+++
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalMarkdown.class.php
2010-01-10 23:31:59 UTC (rev 26461)
@@ -0,0 +1,5 @@
+<?php
+
+class sfValidatorFormSympalMarkdown extends sfValidatorString
+{
+}
\ No newline at end of file
Added:
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalRawHtml.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalRawHtml.class.php
(rev 0)
+++
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalRawHtml.class.php
2010-01-10 23:31:59 UTC (rev 26461)
@@ -0,0 +1,5 @@
+<?php
+
+class sfValidatorFormSympalRawHtml extends sfValidatorString
+{
+}
\ No newline at end of file
Added:
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalText.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalText.class.php
(rev 0)
+++
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalText.class.php
2010-01-10 23:31:59 UTC (rev 26461)
@@ -0,0 +1,5 @@
+<?php
+
+class sfValidatorFormSympalText extends sfValidatorString
+{
+}
\ No newline at end of file
Added:
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalTinyMCE.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalTinyMCE.class.php
(rev 0)
+++
plugins/sfSympalPlugin/trunk/lib/validator/sfValidatorFormSympalTinyMCE.class.php
2010-01-10 23:31:59 UTC (rev 26461)
@@ -0,0 +1,5 @@
+<?php
+
+class sfValidatorFormSympalTinyMCE extends sfValidatorString
+{
+}
\ No newline at end of file
Added:
plugins/sfSympalPlugin/trunk/lib/widget/sfWidgetFormSympalTinyMCE.class.php
===================================================================
--- plugins/sfSympalPlugin/trunk/lib/widget/sfWidgetFormSympalTinyMCE.class.php
(rev 0)
+++ plugins/sfSympalPlugin/trunk/lib/widget/sfWidgetFormSympalTinyMCE.class.php
2010-01-10 23:31:59 UTC (rev 26461)
@@ -0,0 +1,5 @@
+<?php
+
+class sfWidgetFormSympalTinyMCE extends sfWidgetFormTextareaTinyMCE
+{
+}
\ No newline at end of file
--
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.