<?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>Fri, 09 Jan 2009 06:42:32 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: More on Private Methods with PHP 5 Member Visibility ]]></title>
      <guid>http://www.phpdeveloper.org/news/10486</guid>
      <link>http://www.phpdeveloper.org/news/10486</link>
      <description><![CDATA[<p>
DevShed finishes off their series looking a private, public and protected variables and methods in classes with <a href="http://www.devshed.com/c/a/PHP/More-on-Private-Methods-with-PHP-5-Member-Visibility/">this final look</a> a private methods in PHP5 object-oriented programming.
</p>
<blockquote>
It's time to leap forward and tackle this final article of the series, which will be focused on covering some additional aspects concerning the use of this kind of class method. In addition, I'll teach you how to utilize the "final" keyword, which is included with PHP 5, to prevent the methods of a specific class from being overridden by any subclass.
</blockquote>
<p>
They work from a <a href="http://www.devshed.com/c/a/PHP/More-on-Private-Methods-with-PHP-5-Member-Visibility/1/">hands-on example</a> to show how they can work with private methods (expanding a bit from last time) and how to use the "final" keyword to restrict any and all modification for a method.
</p>]]></description>
      <pubDate>Wed, 25 Jun 2008 13:58:20 -0500</pubDate>
    </item>
    <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: Using Subclasses and Accessors with Member Visibility to Protect PHP 5 Class Data]]></title>
      <guid>http://www.phpdeveloper.org/news/10343</guid>
      <link>http://www.phpdeveloper.org/news/10343</link>
      <description><![CDATA[<p>
DevShed has posted the <a href="http://www.devshed.com/c/a/PHP/Using-Subclasses-and-Accessors-with-Member-Visibility-to-Protect-PHP-5-Class-Data/">latest in their series</a> of tutorials covering the scoping keywords in PHP5 (public, private and protected). In this latest edition they work with private values from a parent class.
</p>
<blockquote>
In the last article, I explained how to work with a couple of private properties that partially comprised the API of a basic class, which is useful for saving simple strings to a specified text file.
</blockquote>
<p>
This part builds on this previous example but changes up the subclass (an instance of DataSaver) to use what they call an "accessor" - a function in the parent that returns the private variable/contstant's current value when called.
</p>]]></description>
      <pubDate>Thu, 05 Jun 2008 07:50:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Working with Private Properties to Protect PHP 5 Class Data]]></title>
      <guid>http://www.phpdeveloper.org/news/10292</guid>
      <link>http://www.phpdeveloper.org/news/10292</link>
      <description><![CDATA[<p>
DevShed continues their look at the use of the member visibility functionality PHP5 offers in its classes with <a href="http://www.devshed.com/c/a/PHP/Working-with-Private-Properties-to-Protect-PHP-5-Class-Data/">this new part</a> of the series, a look at the private property.
</p>
<blockquote>
One of the most useful features that was introduced into the improved object model of PHP 5 is "member visibility." It provides PHP developers with the ability to specify the level of access each data member of a class will have in the context of a given application.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Working-with-Private-Properties-to-Protect-PHP-5-Class-Data/1/">review</a> the other two keywords (public/protected) before venturing on to the <a href="http://www.devshed.com/c/a/PHP/Working-with-Private-Properties-to-Protect-PHP-5-Class-Data/2/">use of "private"</a> to protect, but allow access to, methods and properties in a parent class.
</p>]]></description>
      <pubDate>Thu, 29 May 2008 08:47:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Protecting PHP 5 Class Data with Member Visibility]]></title>
      <guid>http://www.phpdeveloper.org/news/10244</guid>
      <link>http://www.phpdeveloper.org/news/10244</link>
      <description><![CDATA[<p>
In <a href="http://www.devshed.com/c/a/PHP/Protecting-PHP-5-Class-Data-with-Member-Visibility/">this new tutorial</a> posted to DevShed, they take a look at working with classes in PHP5, specifically using the keywords for "member visibility" to make your classes a bit more structured.
</p>
<blockquote>
The previous concept can also be applied successfully when it comes to defining the visibility of properties and methods in PHP classes. [...] Using the jargon of object-oriented programming, this capacity is widely known as member visibility. This capacity allows PHP programmers to establish whether the set of methods and properties of a specific class will be public, protected, or private.
</blockquote>
<p>
They start more generally by looking at how to set up the variables <a href="http://www.devshed.com/c/a/PHP/Protecting-PHP-5-Class-Data-with-Member-Visibility/1/">globally</a> and then move down the line talking about <a href="http://www.devshed.com/c/a/PHP/Protecting-PHP-5-Class-Data-with-Member-Visibility/2/">restrictions</a> (private/protected/public) and how to <a href="http://www.devshed.com/c/a/PHP/Protecting-PHP-5-Class-Data-with-Member-Visibility/3/">get to them</a> in the scripts outside the class.
</p>]]></description>
      <pubDate>Thu, 22 May 2008 09:37:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[JSLabs:  Wordpress seo: 5 tips for improving search engine visibility]]></title>
      <guid>http://www.phpdeveloper.org/news/9109</guid>
      <link>http://www.phpdeveloper.org/news/9109</link>
      <description><![CDATA[<p>
The JSLabs blog has <a href="http://www.whenpenguinsattack.com/2007/11/25/wordpress-seo-5-tips-for-improving-search-engine-visibility/">five quick tips</a> for WordPress users out there on how to make their blogs a bit more "search engine friendly".
</p>
<blockquote>
The following are 5 changes you can make to your wordpress blog that can improve your search engine visibility.
</blockquote>
<p>The methods on the list are:</p>
<ul>
<li>Permalinks
<li>Create a sitemap
<li>Improve the titles of your articles
<li>Site submissions
<li>Tagging & Meta Keywords
</ul>
<p>
Details are given on each on implementation.
</p>]]></description>
      <pubDate>Mon, 26 Nov 2007 07:54:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer.com: PHP 5 OOP - Protecting Data With Visibility]]></title>
      <guid>http://www.phpdeveloper.org/news/5349</guid>
      <link>http://www.phpdeveloper.org/news/5349</link>
      <description><![CDATA[<p>
In Developer.com's <a href="http://www.developer.com/lang/php/article.php/3605221">latest article</a>, they continue their series (<a href="http://www.phpdeveloper.org/news/5324">part 1</a>) of working with PHP5's object system to create an abstraction layer, specifically a database layer.
</p>
<quote>
<i>
<p>
In the prior article, <a href="http://www.developer.com/lang/php/article.php/3604111">PHP 5 OOP: Interfaces Abstract Classes and the Adapter Pattern</a>, I presented an interface for abstracting database access from the actual database. The article also presented code for accessing a database.
</p>
<p>
In this article you will learn to expand upon the functionality you built from the first article in order to show how to protect your data using visibility modifiers. 
</p>
</i>
</quote>
<p>
They <a href="http://www.developer.com/lang/php/article.php/3605221">start with</a> a look at some of the "accessibility modifiers" that PHP5 has to offer - like private or public - in it's object model. They define them in the context of their database class as well, demonstrating how both variables and classes can be marked this way. After this, it's all about the code, looking first at preparing the SQL query, then validate the SQL before sending it off to the last step - executing the query and fetching the results (if needed).
</p>]]></description>
      <pubDate>Wed, 10 May 2006 15:02:18 -0500</pubDate>
    </item>
  </channel>
</rss>
