Author: caefer
Date: 2010-03-20 19:01:44 +0100 (Sat, 20 Mar 2010)
New Revision: 28634

Modified:
   
plugins/sfImageTransformExtraPlugin/trunk/modules/sfImageTransformator/lib/BasesfImageTransformatorActions.class.php
Log:
parameter preparation in action no longer necessary

Modified: 
plugins/sfImageTransformExtraPlugin/trunk/modules/sfImageTransformator/lib/BasesfImageTransformatorActions.class.php
===================================================================
--- 
plugins/sfImageTransformExtraPlugin/trunk/modules/sfImageTransformator/lib/BasesfImageTransformatorActions.class.php
        2010-03-20 14:35:57 UTC (rev 28633)
+++ 
plugins/sfImageTransformExtraPlugin/trunk/modules/sfImageTransformator/lib/BasesfImageTransformatorActions.class.php
        2010-03-20 18:01:44 UTC (rev 28634)
@@ -20,8 +20,6 @@
  */
 abstract class BasesfImageTransformatorActions extends sfActions
 {
-  private $options = array();
-
   /**
    * Generates a thumbnail image
    *
@@ -48,27 +46,4 @@
 
     return sfView::NONE;
   }
-
-  private function prepareOptions(sfWebRequest $request) 
-  {
-    $options = array();
-    $formats = explode(',', $request->getParameter('format', false));
-    $options['format'] = array_pop($formats);
-    $options['type'] = $request->getParameter('type', false);
-    $options['path'] = $request->getParameter('path', false);
-    $options['slug'] = $request->getParameter('slug', false);
-    $options['id'] = $request->getParameter('id', false);
-    $options['attribute'] = $request->getParameter('attribute', '0');
-    $options['sf_format'] = $request->getParameter('sf_format', false);
-
-    foreach ($options as $key => $value) 
-    {
-      if (false === $value) 
-      {
-        throw new sfError404Exception('[sfImageTransformExtraPlugin] URL 
parameter "' . $key . '" not set!');
-      }
-    }
-
-    return $options;
-  }
 }

-- 
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.

Reply via email to