<?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>Level 2D Blog &#187; PHP</title>
	<atom:link href="http://level2b.com/category/programming/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://level2b.com</link>
	<description>(2.0)</description>
	<lastBuildDate>Tue, 10 Jan 2012 20:58:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Level 2 Has An Opening</title>
		<link>http://level2b.com/level-2-has-an-opening/</link>
		<comments>http://level2b.com/level-2-has-an-opening/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 22:24:22 +0000</pubDate>
		<dc:creator>Nate Johnson</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[employment]]></category>
		<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Level 2 Design]]></category>

		<guid isPermaLink="false">http://level2b.com/?p=140</guid>
		<description><![CDATA[Level 2 Design is looking for a web programmer.
The position will start out on a contract basis, with a goal of full time-employment.
 The job requirements are as follows: 
 Expertise: 
PHP/MySQL
HTML
CSS
Javascript (jQuery, Ajax, etc.)
 Familiar with: 
Flash Actionscript/Flex
PHP frameworks (Cake, CodeIgnitor, Zend, etc.)
ASP
Server maintenance
DNS configuration
The job includes building comprehensive websites with complex IA and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.level2d.com/">Level 2 Design</a> is looking for a web programmer.<br />
The position will start out on a contract basis, with a goal of full time-employment.</p>
<p><strong> The job requirements are as follows: </strong></p>
<p><strong> Expertise: </strong><br />
PHP/MySQL<br />
HTML<br />
CSS<br />
Javascript (jQuery, Ajax, etc.)</p>
<p><strong> Familiar with: </strong><br />
Flash Actionscript/Flex<br />
PHP frameworks (Cake, CodeIgnitor, Zend, etc.)<br />
ASP<br />
Server maintenance<br />
DNS configuration</p>
<p>The job includes building comprehensive websites with complex IA and various features for users. You will be working closely with a team of other developers, and designers to create the best possible products for clients.</p>
<p>If you are interested feel free to give us a call at 423.779.7172</p>
]]></content:encoded>
			<wfw:commentRss>http://level2b.com/level-2-has-an-opening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Options Object</title>
		<link>http://level2b.com/php-options-object/</link>
		<comments>http://level2b.com/php-options-object/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 22:40:01 +0000</pubDate>
		<dc:creator>Philip Brown</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://level2b.com/?p=16</guid>
		<description><![CDATA[The wait is over for a way to add the functionality of a Javascript options object to PHP5.
I will forwarn that this post contains mostly code since I explained the benifits of this methodoly in my previous post on javascript option objects.

It is a bit different js options object in that it will only set [...]]]></description>
			<content:encoded><![CDATA[<p>The wait is over for a way to add the functionality of a Javascript options object to PHP5.<br />
I will forwarn that this post contains mostly code since I explained the benifits of this methodoly in my <a title="Javascript Options Objects" href="http://level2b.com/javascript-options-object">previous post</a> on javascript option objects.</p>
<p><span id="more-16"></span><br />
It is a bit different js options object in that it will only set options which had defaults supplied upon creation.</p>
<p>Example:</p>
<pre>class Hello
{
	var $defaultOptions = array('planet' =&gt; 'World', 'punctuation' =&gt; '!');

	function __construct($options = array())
	{
		$this-&gt;options = new OptionsObject($this-&gt;defaultOptions);
		$this-&gt;opts-&gt;setOptions($options);
	}
	function message()
	{
		return 'Hello ' . $this-&gt;opts-&gt;planet . $this-&gt;opts-&gt;punctuation;
	}
}

// outputs 'Hello World!'
$a = new HelloPlanet();
print $a-&gt;message();

// outputs 'Hello Mars!'
$b = new HelloPlanet(array('planet' =&gt; 'Mars'));
print $b-&gt;message();</pre>
<p>OptionsObject Code:</p>
<pre>class OptionsObject
{
	private $options;

	public function __construct($options)
	{
		$this-&gt;options = $options;
	}
	public function isValidOption($name)
	{
		return array_key_exists($name, $this-&gt;options);
	}
	public function setOptions(array $options)
	{
		foreach($options as $key =&gt; $value)
		{
			if($this-&gt;isValidOption($key)) $this-&gt;options[$key] = $value;
		}
	}
	public function __get($option)
	{
		return $this-&gt;options[$option];
	}
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://level2b.com/php-options-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

