<?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: sfSimpleGoogleSitemapPlugin</title>
	<atom:link href="http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/</link>
	<description>New Zealand Web Design &#38; Development (PHP 5, MySQL, Symfony Framework, Apache, Linux)</description>
	<lastBuildDate>Fri, 09 Dec 2011 18:27:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Pazzo</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/comment-page-1/#comment-10082</link>
		<dc:creator>Pazzo</dc:creator>
		<pubDate>Fri, 09 Dec 2011 18:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394#comment-10082</guid>
		<description>aaarrg

– { column: start_date, method: StartDate, operator: , value: ” }
value is &#039;echo date(&#039;Y-m-d&#039;, time())&#039;

written in &quot;php code inside yaml&quot; style</description>
		<content:encoded><![CDATA[<p>aaarrg</p>
<p>– { column: start_date, method: StartDate, operator: , value: ” }<br />
value is &#8216;echo date(&#8216;Y-m-d&#8217;, time())&#8217;</p>
<p>written in &#8220;php code inside yaml&#8221; style</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pazzo</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/comment-page-1/#comment-10081</link>
		<dc:creator>Pazzo</dc:creator>
		<pubDate>Fri, 09 Dec 2011 18:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394#comment-10081</guid>
		<description>sorry... how to write php code?!?

– { column: start_date, method: StartDate, operator: &lt;, value: &#039;’ }
– { column: end_date, method: EndDate, operator: &gt;, value: &#039;&#039; }</description>
		<content:encoded><![CDATA[<p>sorry&#8230; how to write php code?!?</p>
<p>– { column: start_date, method: StartDate, operator: &lt;, value: &#039;’ }<br />
– { column: end_date, method: EndDate, operator: &gt;, value: &#8221; }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pazzo</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/comment-page-1/#comment-10080</link>
		<dc:creator>Pazzo</dc:creator>
		<pubDate>Fri, 09 Dec 2011 18:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394#comment-10080</guid>
		<description>Hi!
this worked for my date comparison:

   - { column: start_date, method: StartDate, operator: &lt;, value: &#039;&#039; }
   - { column: end_date, method: EndDate, operator: &gt;, value: &#039;&#039; }</description>
		<content:encoded><![CDATA[<p>Hi!<br />
this worked for my date comparison:</p>
<p>   &#8211; { column: start_date, method: StartDate, operator: &lt;, value: &#039;&#8217; }<br />
   &#8211; { column: end_date, method: EndDate, operator: &gt;, value: &#8221; }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sid</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/comment-page-1/#comment-8088</link>
		<dc:creator>Sid</dc:creator>
		<pubDate>Fri, 15 Jul 2011 07:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394#comment-8088</guid>
		<description>Hi Yordan,

It doesn&#039;t support joins, but you can create stored view on MySQL and create a Propel class for it.

Sid</description>
		<content:encoded><![CDATA[<p>Hi Yordan,</p>
<p>It doesn&#8217;t support joins, but you can create stored view on MySQL and create a Propel class for it.</p>
<p>Sid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yordan Lazarov</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/comment-page-1/#comment-8081</link>
		<dc:creator>Yordan Lazarov</dc:creator>
		<pubDate>Thu, 14 Jul 2011 09:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394#comment-8081</guid>
		<description>How to join TABLE?</description>
		<content:encoded><![CDATA[<p>How to join TABLE?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sid</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/comment-page-1/#comment-7889</link>
		<dc:creator>Sid</dc:creator>
		<pubDate>Wed, 29 Jun 2011 22:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394#comment-7889</guid>
		<description>Try this:

{ column: schedule_at, method: ScheduleAt, operator: &lt; , value: current_timestamp }</description>
		<content:encoded><![CDATA[<p>Try this:</p>
<p>{ column: schedule_at, method: ScheduleAt, operator: < , value: current_timestamp }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharo Baro</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/comment-page-1/#comment-7884</link>
		<dc:creator>Sharo Baro</dc:creator>
		<pubDate>Wed, 29 Jun 2011 14:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394#comment-7884</guid>
		<description>How can I specify a timestamp criteria in the app.yml file?

I need something like this:
        criteria:                                # criterias to filter the records to include in the sitemap
          - { column: schedule_at, method: ScheduleAt, operator: &lt; , value: timestamp() }    

What is the proper syntax for that ?</description>
		<content:encoded><![CDATA[<p>How can I specify a timestamp criteria in the app.yml file?</p>
<p>I need something like this:<br />
        criteria:                                # criterias to filter the records to include in the sitemap<br />
          &#8211; { column: schedule_at, method: ScheduleAt, operator: &lt; , value: timestamp() }    </p>
<p>What is the proper syntax for that ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sid</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/comment-page-1/#comment-6837</link>
		<dc:creator>Sid</dc:creator>
		<pubDate>Fri, 15 Apr 2011 10:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394#comment-6837</guid>
		<description>Hi Jevgenijs,

I will make it protected on the next release

and I&#039;ll also look at adding the functionality posted by Miquel

Cheers</description>
		<content:encoded><![CDATA[<p>Hi Jevgenijs,</p>
<p>I will make it protected on the next release</p>
<p>and I&#8217;ll also look at adding the functionality posted by Miquel</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jevgenijs Spruzhs</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/comment-page-1/#comment-6836</link>
		<dc:creator>Jevgenijs Spruzhs</dc:creator>
		<pubDate>Fri, 15 Apr 2011 10:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394#comment-6836</guid>
		<description>Hi!

I am using your plugin sfSimpleGoogleSitemapPlugin and I found one small 
issue which is quite small and really easy to fix. I have multicultural 
environment and I need to extend sfSimpleGoogleSitemap and redefine 
processConfig method. The problem is that $gsgxml in 
sfSimpleGoogleSitemap is private. The plugin could be much more flexible 
if you define this variable as protected, so I am able to use it in my 
class.</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I am using your plugin sfSimpleGoogleSitemapPlugin and I found one small<br />
issue which is quite small and really easy to fix. I have multicultural<br />
environment and I need to extend sfSimpleGoogleSitemap and redefine<br />
processConfig method. The problem is that $gsgxml in<br />
sfSimpleGoogleSitemap is private. The plugin could be much more flexible<br />
if you define this variable as protected, so I am able to use it in my<br />
class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel Ángel</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/comment-page-1/#comment-6764</link>
		<dc:creator>Miguel Ángel</dc:creator>
		<pubDate>Mon, 04 Apr 2011 13:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394#comment-6764</guid>
		<description>I&#039;ve made some modifications, they worked for me (and surely there would be a cleaner way to get this). They just check the &quot;method&quot; indicated in the criteria when the &quot;column&quot; is not set. I modified sfSimpleGoogleSitemap.class.php

To ignore those criterias without column just added one line to queryUsingPropel method:
=    if ($criteria_array and is_array($criteria_array))
=    {
=      foreach ($criteria_array as $crit)
=      {
+        if (!isset($crit[&#039;column&#039;]) &#124;&#124; $crit[&#039;column&#039;]==&#039;&#039;) continue;

To execute the method indicated in the criteria I added the following lines to processConfig() method:

=        // if there&#039;s any result
=        if ($objects and (is_array($objects) or ( $orm == self::ORM_DOCTRINE and $objects instanceof Doctrine_Collection )))
=        {
=          foreach ($objects as $obj)
=          {

+            if ($criteria_array and is_array($criteria_array))
+            {
+              $ignore_object = false;
+              foreach ($criteria_array as $crit)
+              {
+                if (isset($crit[&#039;column&#039;]) &amp;&amp; $crit[&#039;column&#039;]!=&#039;&#039;) continue;
+                $operator = ($crit[&#039;operator&#039;]==&#039;=&#039;?&#039;==&#039;:$crit[&#039;operator&#039;]);
+                $value = $crit[&#039;value&#039;];
+                $method = $crit[&#039;method&#039;];
+                if (!eval(&#039;return &#039;.($obj-&gt;$method()?&#039;1&#039;:&#039;0&#039;).$operator.$value.&#039;;&#039;))
+                {
+                  $ignore_object = true;
+                  break;
+                }
+              }
+              if ($ignore_object)
+                continue;
+            }

Sorry I have not added this functionalities  to DbFinder or Doctrine. 
Hope It&#039;s useful.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve made some modifications, they worked for me (and surely there would be a cleaner way to get this). They just check the &#8220;method&#8221; indicated in the criteria when the &#8220;column&#8221; is not set. I modified sfSimpleGoogleSitemap.class.php</p>
<p>To ignore those criterias without column just added one line to queryUsingPropel method:<br />
=    if ($criteria_array and is_array($criteria_array))<br />
=    {<br />
=      foreach ($criteria_array as $crit)<br />
=      {<br />
+        if (!isset($crit['column']) || $crit['column']==&#8221;) continue;</p>
<p>To execute the method indicated in the criteria I added the following lines to processConfig() method:</p>
<p>=        // if there&#8217;s any result<br />
=        if ($objects and (is_array($objects) or ( $orm == self::ORM_DOCTRINE and $objects instanceof Doctrine_Collection )))<br />
=        {<br />
=          foreach ($objects as $obj)<br />
=          {</p>
<p>+            if ($criteria_array and is_array($criteria_array))<br />
+            {<br />
+              $ignore_object = false;<br />
+              foreach ($criteria_array as $crit)<br />
+              {<br />
+                if (isset($crit['column']) &amp;&amp; $crit['column']!=&#8221;) continue;<br />
+                $operator = ($crit['operator']==&#8217;='?&#8217;==&#8217;:$crit['operator']);<br />
+                $value = $crit['value'];<br />
+                $method = $crit['method'];<br />
+                if (!eval(&#8216;return &#8216;.($obj-&gt;$method()?&#8217;1&#8242;:&#8217;0&#8242;).$operator.$value.&#8217;;'))<br />
+                {<br />
+                  $ignore_object = true;<br />
+                  break;<br />
+                }<br />
+              }<br />
+              if ($ignore_object)<br />
+                continue;<br />
+            }</p>
<p>Sorry I have not added this functionalities  to DbFinder or Doctrine.<br />
Hope It&#8217;s useful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

