<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cc-licensed by sexybiggetje.nl</title>
	<atom:link href="http://cc.sexybiggetje.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://cc.sexybiggetje.nl</link>
	<description>putting cc-licensed work out there</description>
	<lastBuildDate>Sun, 23 Jan 2011 15:10:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Hints of blue</title>
		<link>http://cc.sexybiggetje.nl/2011/01/23/hints-of-blue/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://cc.sexybiggetje.nl/2011/01/23/hints-of-blue/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 15:09:34 +0000</pubDate>
		<dc:creator>Martijn de Boer</dc:creator>
				<category><![CDATA[artwork]]></category>
		<category><![CDATA[fractal]]></category>

		<guid isPermaLink="false">http://cc.sexybiggetje.nl/?p=26</guid>
		<description><![CDATA[<p>Hints of blue, the little brother of Not so perfect orange fractal.</p> <p>Download the full image at a whopping resolution of 5906&#215;5906 pixels from <a title="Deviation view for &#34;Hints of blue&#34;" href="http://djmirage.deviantart.com/art/Hints-of-blue-194594578" target="_blank">deviantArt</a>, or <a title="Buy &#34;Hints of blue&#34; at deviantArt.com" href="http://www.deviantart.com/print/17147683/" target="_blank">buy it over there</a> as a print on paper or canvas in a [...]]]></description>
			<content:encoded><![CDATA[<p>Hints of blue, the little brother of <i>Not so perfect orange fractal</i>.</p>
<p>Download the full image at a whopping resolution of 5906&#215;5906 pixels from <a title="Deviation view for &quot;Hints of blue&quot;" href="http://djmirage.deviantart.com/art/Hints-of-blue-194594578" target="_blank">deviantArt</a>, or <a title="Buy &quot;Hints of blue&quot; at deviantArt.com" href="http://www.deviantart.com/print/17147683/" target="_blank">buy it over there</a> as a print on paper or canvas in a frame or without a frame, looks great with a Lustre finish.</p>
<p><a href="http://djmirage.deviantart.com/art/Hints-of-blue-194594578"><img src="http://cc.sexybiggetje.nl/files/2011/01/downloadhintsofblue.png" alt="" title="Download hints of blue" width="640" height="640" class="aligncenter size-full wp-image-27" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cc.sexybiggetje.nl/2011/01/23/hints-of-blue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not so perfect orange fractal</title>
		<link>http://cc.sexybiggetje.nl/2010/12/11/not-so-perfect-orange-fractal/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://cc.sexybiggetje.nl/2010/12/11/not-so-perfect-orange-fractal/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 22:23:39 +0000</pubDate>
		<dc:creator>Martijn de Boer</dc:creator>
				<category><![CDATA[artwork]]></category>
		<category><![CDATA[fractal]]></category>

		<guid isPermaLink="false">http://cc.sexybiggetje.nl/?p=17</guid>
		<description><![CDATA[<p>Done by digital manual labour, duplicating everything by hand in order to create a fractal that is flawed but looks good at first glance. Everything has flaws, even fractals.</p> <p>Download the full image at a whopping resolution of 5906&#215;5906 pixels from <a title="Deviation view for &#34;Not so perfect orange fractal&#34;" href="http://djmirage.deviantart.com/art/Not-so-perfect-orange-fractal-189262995" target="_blank">deviantArt</a>, or <a title="Buy [...]]]></description>
			<content:encoded><![CDATA[<p>Done by digital manual labour, duplicating everything by hand in order to create a fractal that is flawed but looks good at first glance. Everything has flaws, even fractals.</p>
<p>Download the full image at a whopping resolution of 5906&#215;5906 pixels from <a title="Deviation view for &quot;Not so perfect orange fractal&quot;" href="http://djmirage.deviantart.com/art/Not-so-perfect-orange-fractal-189262995" target="_blank">deviantArt</a>, or <a title="Buy &quot;Not so perfect fractal&quot; at deviantArt.com" href="http://www.deviantart.com/print/16311832/" target="_blank">buy it over there</a> as a print on paper or canvas in a frame or without a frame, looks great with a Lustre finish.</p>
<p><a href="http://djmirage.deviantart.com/art/Not-so-perfect-orange-fractal-189262995"><img class="aligncenter size-full wp-image-23" title="Not so perfect orange fractal" src="http://cc.sexybiggetje.nl/files/2010/12/notsoperfectorangefractal1.png" alt="" width="640" height="640" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cc.sexybiggetje.nl/2010/12/11/not-so-perfect-orange-fractal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use normal accessor and mutator functions in PHP</title>
		<link>http://cc.sexybiggetje.nl/2010/07/11/use-normal-accessor-and-mutator-functions-in-php/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://cc.sexybiggetje.nl/2010/07/11/use-normal-accessor-and-mutator-functions-in-php/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 09:41:18 +0000</pubDate>
		<dc:creator>Martijn de Boer</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[accessor]]></category>
		<category><![CDATA[mutator]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://cc.sexybiggetje.nl/?p=11</guid>
		<description><![CDATA[<p>PHP recommends making accessor/mutator functions available in a java style manner. This means that you will have to use $myObjects-&#62;getMyProperty(); every time you need to. To improve readability and make us type a bit less, you&#8217;d obviously just want to use $myObjects-&#62;myProperty.<br /> The following code makes this possible by using PHP&#8217;s magic functions <a [...]]]></description>
			<content:encoded><![CDATA[<p>PHP recommends making accessor/mutator functions available in a java style manner. This means that you will have to use $myObjects-&gt;getMyProperty(); every time you need to. To improve readability and make us type a bit less, you&#8217;d obviously just want to use $myObjects-&gt;myProperty.<br />
The following code makes this possible by using PHP&#8217;s magic functions <a href="http://php.net/__get" target="_blank">__get</a> and <a href="http://php.net/__set" target="_blank">__set</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php
<span style="color: #009933; font-style: italic;">/**
 * Define accessor and mutator functions for objects using object overloading
 * with magic __get and __set functions as documented at the PHP Documentation page below.
 * 
 * Your objects should derive from this class before using this syntax.
 * Default php convention for accessor and mutator syntax follows the java guidelines 
 * for getPropertyName and setPropertyName, because this matches our naming convention
 * your functions should be formatted like this.
 * 
 * &lt;code&gt;
 * 	&lt; ?php
 * 		class MyFunkyObject extends AccessorMutator
 * 		{
 * 			protected $mMyNonExistentProperty;
 * 			protected $mUseCounter = 0;
 * 
 * 			public function getMyNonExistentProperty() { return $this-&gt;mMyNonExistentProperty; }
 * 			public function setMyNonExistentProperty($aValue)
 * 			{
 * 				$this-&gt;mMyNonExistentProperty = $aValue;
 * 				$this-&gt;mUseCounter++;
 * 			}
 * 		}
 * 
 * 		$myFunkyObject = new MyFunkyObject();
 * 		$myFunkyObject-&gt;myNonExistentProperty = &quot;Neu am Kino&quot;;
 * 		echo $myFunkyObject-&gt;myNonExistentProperty;
 * 	?&gt;
 * 
 * 
 * @author Martijn de Boer / http://cc.sexybiggetje.nl
 * @see http://www.php.net/manual/en/book.overload.php
 * @license http://creativecommons.org/licenses/by-sa/3.0/
 */</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> AccessorMutator
<span style="color: #009900;">&#123;</span>
	<span style="color: #009933; font-style: italic;">/**
	 * Make the accessor function available using object overloading in a java style
	 * accessor function following the camelcasing guideline from our styleguide.
	 * 
	 * @param string $aPropertyName
	 * @return object
	 */</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$aPropertyName</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$theFunctionName</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;get&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">ucFirst</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$aPropertyName</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">method_exists</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span> <span style="color: #000088;">$theFunctionName</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$theFunctionName</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">throw</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> Exception<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;No accessor method defined for '&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$aPropertyName</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;', did you forget to define &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$theFunctionName</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;?&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Make the mutator function available using object overloading in a java style
	 * mutator function following the camelcasing guideline from our styleguide.
	 * 
	 * @param string $aPropertyName
	 * @param string $aPropertyValue
	 * @return null
	 */</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __set<span style="color: #009900;">&#40;</span><span style="color: #000088;">$aPropertyName</span><span style="color: #339933;">,</span> <span style="color: #000088;">$aPropertyValue</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$theFunctionName</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;set&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">ucfirst</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$aPropertyName</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">method_exists</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span> <span style="color: #000088;">$theFunctionName</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$theFunctionName</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$aPropertyValue</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">throw</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> Exception<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;No mutator method defined for '&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$aPropertyName</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;', did you forget to define &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$theFunctionName</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;(<span style="color: #000099; font-weight: bold;">\$</span>aValue)?&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://cc.sexybiggetje.nl/2010/07/11/use-normal-accessor-and-mutator-functions-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

