<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 19 Jul 2008 23:28:23 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Defining Public and Protected Methods with Member Visibility in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/10394</guid>
      <link>http://www.phpdeveloper.org/news/10394</link>
      <description><![CDATA[<p>
DevShed continues their series looking at variable scoping in PHP5 classes with <a href="http://www.devshed.com/c/a/PHP/Defining-Public-and-Protected-Methods-with-Member-Visibility-in-PHP-5/">this new look</a> at using the public and protected keywords to "restrict member visibility".
</p>
<blockquote>
Now that you know what will be treated in this fourth chapter of the series, it's time to learn how to declare and implement public and protected methods with PHP 5 classes. Of course, as always I'm going to address this useful topic by using a hands-on approach, which means that there's a bunch of code samples ahead, waiting patiently for you.
</blockquote>
<p>
They talk about calling methods <a href="http://www.devshed.com/c/a/PHP/Defining-Public-and-Protected-Methods-with-Member-Visibility-in-PHP-5/1/">globally</a> first and then move into the keyword restrictions. They show the difference between a public method/variable and a <a href="http://www.devshed.com/c/a/PHP/Defining-Public-and-Protected-Methods-with-Member-Visibility-in-PHP-5/2/">protected</a> one, including how to get at the protected members from a child class.
</p>]]></description>
      <pubDate>Thu, 12 Jun 2008 07:51:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Parsing Child Nodes with the DOM XML extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9928</guid>
      <link>http://www.phpdeveloper.org/news/9928</link>
      <description><![CDATA[<p>
<i>Alejandro Gervasio</i> has finished up his series on DevShed looking at working with the DOM extension in PHP5 with <A href="http://www.devshed.com/c/a/PHP/Parsing-Child-Nodes-with-the-DOM-XML-extension-in-PHP-5/">this new article</a>, a look at parsing child nodes.
</p>
<blockquote>
In this last chapter of the series, I'm going to teach you how to handle the child nodes of an XML document by way of two simple methods, called hasChildNode() and removeChild() respectively. So let's not waste any more time in preliminaries and learn how to use them in a helpful way.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Parsing-Child-Nodes-with-the-DOM-XML-extension-in-PHP-5/1/">review</a> some of the concepts mentioned previously before moving ahead to the use of the <a href="http://www.devshed.com/c/a/PHP/Parsing-Child-Nodes-with-the-DOM-XML-extension-in-PHP-5/2/">hasChildNodes</a> and <a href="http://www.devshed.com/c/a/PHP/Parsing-Child-Nodes-with-the-DOM-XML-extension-in-PHP-5/3/">removeChild</a> methods to check for children and get rid of only certain ones.
</p>]]></description>
      <pubDate>Tue, 08 Apr 2008 09:47:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Arnold Daniels' Blog: A dark corner of PHP: class casting]]></title>
      <guid>http://www.phpdeveloper.org/news/9670</guid>
      <link>http://www.phpdeveloper.org/news/9670</link>
      <description><![CDATA[<p>
In <a href="http://blog.adaniels.nl/articles/a-dark-corner-of-php-class-casting/">this blog entry</a> <i>Arnold Daniels</i> talks about an issue he had in the past (needing a bit more functionality than the <a href="http://pear.php.net/package/DB">PEAR DB library</a> could offer) and how he ended up solving it with what he calls a "dark corner" of PHP - class casting.
</p>
<blockquote>
PHP has a function serialize, which can create a hash from any type of variable, scalars, array, but objects as well. Using the unserialize function, PHP can recreate the variable from the serialized hashed. If we look at how an object is serialized, we see only the properties and the class name are stored.
</blockquote>
<p>
<a href="http://blog.adaniels.nl/articles/a-dark-corner-of-php-class-casting/">His method</a> allows for class manipulation via changes to the serialized class information (like changing the value of the name parameter). His "casttoclass()" function makes changing this value simple.
</p>]]></description>
      <pubDate>Wed, 20 Feb 2008 12:08:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[php|architect: Managing Layout in PHP-GTK 2]]></title>
      <guid>http://www.phpdeveloper.org/news/5671</guid>
      <link>http://www.phpdeveloper.org/news/5671</link>
      <description><![CDATA[<p>
On php|architect's A/R/T article repository today, there's <a href="http://hades.phparch.com/ceres/public/article/index.php/art::php_gtk::managing_layout">the next</a> in a continuing series <i>Scott Mattocks</i> is doing on PHP-GTK 2. This time, he looks at how to manage the layout of your application with the given functionality.
</p>
<blockquote>
In the <a href="http://www.phpdeveloper.org/news/5510">last article</a>, "Hello PHP-GTK", we looked at what it takes to create a simple application. At the end, we were left with a PHP-GTK implementation of "Hello World". The application was very simple. Too simple. All it did was display one line of text in a window. In this article we will expand on the previous article by adding more content to the window. Along the way we will look at how parents and children interact and what it takes to make children behave properly.
</blockquote>
<p>
He <a href="http://hades.phparch.com/ceres/public/article/index.php/art::php_gtk::managing_layout">starts by explaining</a> the parent child relationship between the base window and other children (spawned) windows, mentioning the GtkWindow and GtkObject widgets. With windows down, he moves on to "boxes", seperation areas inside the windows to help organize the content (including ways to frame them in). And, to wrap it all up, a look at GtkTable, a widget that helps you create a nicely laid out table inside of your window (simpler than several boxes). 
</p>]]></description>
      <pubDate>Fri, 23 Jun 2006 13:45:20 -0500</pubDate>
    </item>
  </channel>
</rss>
