<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Symfony sfAssetsLibraryPlugin assets resize script</title>
	<atom:link href="http://www.alexfilatov.com/2009/08/25/symfony-sfassetslibraryplugin-assets-resize-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexfilatov.com/2009/08/25/symfony-sfassetslibraryplugin-assets-resize-script/</link>
	<description>My online private property</description>
	<lastBuildDate>Tue, 17 Aug 2010 02:36:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: alex</title>
		<link>http://www.alexfilatov.com/2009/08/25/symfony-sfassetslibraryplugin-assets-resize-script/comment-page-1/#comment-21162</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Sun, 20 Sep 2009 12:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexfilatov.com/?p=111#comment-21162</guid>
		<description>cool! :) thanks!</description>
		<content:encoded><![CDATA[<p>cool! <img src='http://www.alexfilatov.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KSN135</title>
		<link>http://www.alexfilatov.com/2009/08/25/symfony-sfassetslibraryplugin-assets-resize-script/comment-page-1/#comment-20951</link>
		<dc:creator>KSN135</dc:creator>
		<pubDate>Tue, 01 Sep 2009 14:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexfilatov.com/?p=111#comment-20951</guid>
		<description>redesigned as task... :-)
addArguments(array(
    //   new sfCommandArgument(&#039;my_arg&#039;, sfCommandArgument::REQUIRED, &#039;My argument&#039;),
    // ));

    $this-&gt;addOptions(array(
      new sfCommandOption(&#039;application&#039;, null, sfCommandOption::PARAMETER_REQUIRED, &#039;The application name&#039;),
      new sfCommandOption(&#039;env&#039;, null, sfCommandOption::PARAMETER_REQUIRED, &#039;The environment&#039;, &#039;dev&#039;),
      new sfCommandOption(&#039;connection&#039;, null, sfCommandOption::PARAMETER_REQUIRED, &#039;The connection name&#039;, &#039;propel&#039;),
      // add your own options here
    ));

    $this-&gt;namespace        = &#039;asset&#039;;
    $this-&gt;name             = &#039;regenerate-thumbnails&#039;;
    $this-&gt;briefDescription = &#039;Regenerate all thumbnals using parameters defined in app.yml&#039;;
    $this-&gt;detailedDescription = &lt;&lt;configuration);
    $connection = $databaseManager-&gt;getDatabase($options[&#039;connection&#039;] ? $options[&#039;connection&#039;] : null)-&gt;getConnection();

    // If you have a lot of records you should refine this using hydration
    $c = new Criteria();
    $c-&gt;add(sfAssetPeer::TYPE, &#039;image&#039;);
    $assets = sfAssetPeer::doSelect($c);

    foreach ($assets as $asset) {
      echo &#039;Processing &#039; . SF_ROOT_DIR.DIRECTORY_SEPARATOR.&#039;/web/&#039;.$asset-&gt;getFolderPath() . &#039;:&#039; . $asset-&gt;getFilename() . &#039;...&#039;;
      sfAssetsLibraryTools::createThumbnails($asset-&gt;getFolderPath(), $asset-&gt;getFilename());
      echo &quot;done!\n&quot;;
    }
    
  }
}</description>
		<content:encoded><![CDATA[<p>redesigned as task&#8230; <img src='http://www.alexfilatov.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
addArguments(array(<br />
    //   new sfCommandArgument(&#8216;my_arg&#8217;, sfCommandArgument::REQUIRED, &#8216;My argument&#8217;),<br />
    // ));</p>
<p>    $this-&gt;addOptions(array(<br />
      new sfCommandOption(&#8216;application&#8217;, null, sfCommandOption::PARAMETER_REQUIRED, &#8216;The application name&#8217;),<br />
      new sfCommandOption(&#8216;env&#8217;, null, sfCommandOption::PARAMETER_REQUIRED, &#8216;The environment&#8217;, &#8216;dev&#8217;),<br />
      new sfCommandOption(&#8216;connection&#8217;, null, sfCommandOption::PARAMETER_REQUIRED, &#8216;The connection name&#8217;, &#8216;propel&#8217;),<br />
      // add your own options here<br />
    ));</p>
<p>    $this-&gt;namespace        = &#8216;asset&#8217;;<br />
    $this-&gt;name             = &#8216;regenerate-thumbnails&#8217;;<br />
    $this-&gt;briefDescription = &#8216;Regenerate all thumbnals using parameters defined in app.yml&#8217;;<br />
    $this-&gt;detailedDescription = &lt;&lt;configuration);<br />
    $connection = $databaseManager-&gt;getDatabase($options['connection'] ? $options['connection'] : null)-&gt;getConnection();</p>
<p>    // If you have a lot of records you should refine this using hydration<br />
    $c = new Criteria();<br />
    $c-&gt;add(sfAssetPeer::TYPE, &#8216;image&#8217;);<br />
    $assets = sfAssetPeer::doSelect($c);</p>
<p>    foreach ($assets as $asset) {<br />
      echo &#8216;Processing &#8216; . SF_ROOT_DIR.DIRECTORY_SEPARATOR.&#8217;/web/&#8217;.$asset-&gt;getFolderPath() . &#8216;:&#8217; . $asset-&gt;getFilename() . &#8216;&#8230;&#8217;;<br />
      sfAssetsLibraryTools::createThumbnails($asset-&gt;getFolderPath(), $asset-&gt;getFilename());<br />
      echo &#8220;done!\n&#8221;;<br />
    }</p>
<p>  }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
