<?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: More fun with the Basecamp PHP Wrapper</title>
	<atom:link href="http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/</link>
	<description>A Developer with too little time.</description>
	<lastBuildDate>Sun, 18 Sep 2011 17:38:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: AQ</title>
		<link>http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/comment-page-1/#comment-21997</link>
		<dc:creator>AQ</dc:creator>
		<pubDate>Thu, 14 Feb 2008 16:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/#comment-21997</guid>
		<description>Thanks, Matt,

I&#039;m looking to finally make a real release of this in the next couple weeks and i&#039;ll include this bit and give you full credit.</description>
		<content:encoded><![CDATA[<p>Thanks, Matt,</p>
<p>I&#8217;m looking to finally make a real release of this in the next couple weeks and i&#8217;ll include this bit and give you full credit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/comment-page-1/#comment-21995</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Thu, 14 Feb 2008 16:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/#comment-21995</guid>
		<description>I had an issue with the find_all_uncomplete_todos function when there was a to-do list item only one item (it didn&#039;t matter if it was umcomplete or complete). 

The issue is that todo-item does not contain an array, but rather just the single item.

My workaround.  Tests the count = 1 and then if so, creates an array with one item and stores that in the {&quot;todo-item&quot;}

First and last line are the same as the original script and used for an insertion reference.

if ($list_data &amp;&amp; $list_data-&gt;{&quot;todo-items&quot;}-&gt;{&quot;todo-item&quot;}) {
     //start array hack here	
     if (count($list_data-&gt;{&quot;todo-items&quot;}-&gt;{&quot;todo-item&quot;}) == 1){
          $tmp =  $list_data-&gt;{&quot;todo-items&quot;}-&gt;{&quot;todo-item&quot;};
          $list_data-&gt;{&quot;todo-items&quot;}-&gt;{&quot;todo-item&quot;} = array($tmp);
     }
     //end array hack here
			
foreach ($list_data-&gt;{&quot;todo-items&quot;}-&gt;{&quot;todo-item&quot;} as $todo) {</description>
		<content:encoded><![CDATA[<p>I had an issue with the find_all_uncomplete_todos function when there was a to-do list item only one item (it didn&#8217;t matter if it was umcomplete or complete). </p>
<p>The issue is that todo-item does not contain an array, but rather just the single item.</p>
<p>My workaround.  Tests the count = 1 and then if so, creates an array with one item and stores that in the {&#8220;todo-item&#8221;}</p>
<p>First and last line are the same as the original script and used for an insertion reference.</p>
<p>if ($list_data &amp;&amp; $list_data-&gt;{&#8220;todo-items&#8221;}-&gt;{&#8220;todo-item&#8221;}) {<br />
     //start array hack here<br />
     if (count($list_data-&gt;{&#8220;todo-items&#8221;}-&gt;{&#8220;todo-item&#8221;}) == 1){<br />
          $tmp =  $list_data-&gt;{&#8220;todo-items&#8221;}-&gt;{&#8220;todo-item&#8221;};<br />
          $list_data-&gt;{&#8220;todo-items&#8221;}-&gt;{&#8220;todo-item&#8221;} = array($tmp);<br />
     }<br />
     //end array hack here</p>
<p>foreach ($list_data-&gt;{&#8220;todo-items&#8221;}-&gt;{&#8220;todo-item&#8221;} as $todo) {</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AQ</title>
		<link>http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/comment-page-1/#comment-2397</link>
		<dc:creator>AQ</dc:creator>
		<pubDate>Wed, 14 Feb 2007 22:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/#comment-2397</guid>
		<description>I dont think I ever posted the actual full file. I assumed that readers could take the couple posts that I had here and cut and paste the sample code that they needed.</description>
		<content:encoded><![CDATA[<p>I dont think I ever posted the actual full file. I assumed that readers could take the couple posts that I had here and cut and paste the sample code that they needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/comment-page-1/#comment-2396</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 14 Feb 2007 22:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/#comment-2396</guid>
		<description>Hi
Had a 404 trying to download customcamp.php.
http://www.quirkey.com/software/customcamp.php

Looking for sample code to understand your class.
Cheers</description>
		<content:encoded><![CDATA[<p>Hi<br />
Had a 404 trying to download customcamp.php.<br />
<a href="http://www.quirkey.com/software/customcamp.php" rel="nofollow">http://www.quirkey.com/software/customcamp.php</a></p>
<p>Looking for sample code to understand your class.<br />
Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AQ</title>
		<link>http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/comment-page-1/#comment-653</link>
		<dc:creator>AQ</dc:creator>
		<pubDate>Wed, 01 Nov 2006 15:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/#comment-653</guid>
		<description>Awesome, If you make any changes to the actual wrapper, please let me know. I&#039;ll test them and see about adding them to the code-base. Would you rather send PHP objects instead of arrays?</description>
		<content:encoded><![CDATA[<p>Awesome, If you make any changes to the actual wrapper, please let me know. I&#8217;ll test them and see about adding them to the code-base. Would you rather send PHP objects instead of arrays?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Forsyth</title>
		<link>http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/comment-page-1/#comment-652</link>
		<dc:creator>Paul Forsyth</dc:creator>
		<pubDate>Wed, 01 Nov 2006 12:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/#comment-652</guid>
		<description>I will do. Im using this in context with a CMS system so much of my usage is domain specific.

I would like to add some wrapper functions to help with requests construction. For example, adding in names/descriptions for new todo lists is currently performed by including an array which i didnt realise at first.</description>
		<content:encoded><![CDATA[<p>I will do. Im using this in context with a CMS system so much of my usage is domain specific.</p>
<p>I would like to add some wrapper functions to help with requests construction. For example, adding in names/descriptions for new todo lists is currently performed by including an array which i didnt realise at first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AQ</title>
		<link>http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/comment-page-1/#comment-638</link>
		<dc:creator>AQ</dc:creator>
		<pubDate>Mon, 30 Oct 2006 14:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/#comment-638</guid>
		<description>Thanks!
If you write anything cool or useful, please share. I&#039;m really interested in what other people are doing with the wrapper/api.
--AQ</description>
		<content:encoded><![CDATA[<p>Thanks!<br />
If you write anything cool or useful, please share. I&#8217;m really interested in what other people are doing with the wrapper/api.<br />
&#8211;AQ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Forsyth</title>
		<link>http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/comment-page-1/#comment-636</link>
		<dc:creator>Paul Forsyth</dc:creator>
		<pubDate>Mon, 30 Oct 2006 11:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.quirkey.com/blog/2006/08/01/more-fun-with-the-basecamp-php-wrapper/#comment-636</guid>
		<description>Thanks for this wrapper!

I&#039;ve been able to pick it up this morning and have a quick play. Very easy :)</description>
		<content:encoded><![CDATA[<p>Thanks for this wrapper!</p>
<p>I&#8217;ve been able to pick it up this morning and have a quick play. Very easy <img src='http://www.quirkey.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

