<?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, 24 May 2013 01:54:41 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Building Object-Oriented Web Pages with Inheritance in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/8256</guid>
      <link>http://www.phpdeveloper.org/news/8256</link>
      <description><![CDATA[<p>
DevShed has <a href="http://www.devshed.com/c/a/PHP/Building-Object-Oriented-Web-Pages-with-Inheritance-in-PHP-5/">posted part one</a> of a new pair of articles that show how to use inheritance in your PHP applications.
</p>
<blockquote>
In the two articles in this series I'm going to show you how to build a sample object-based web site from its bare bones structure, by using the encapsulated logic of some parent and child PHP 5 classes. In this way I'll demonstrate how inheritance can be used to tackle a concrete project, such as constructing dynamic web pages.
</blockquote>
<p>
In <a href="http://www.devshed.com/c/a/PHP/Building-Object-Oriented-Web-Pages-with-Inheritance-in-PHP-5/">part one</a>, they build the foundation of their sample application - a web page builder - by defining the WebPage class and abstract methods for it like buildHeader, buildStyles and buildBody. Inheriting from this, they build a HomeWebPage class that defines the methods and values to create a simple page. They take it even a step further and build an AboutUsWebPage to show another implementation.
</p>]]></description>
      <pubDate>Mon, 16 Jul 2007 15:18:00 -0500</pubDate>
    </item>
  </channel>
</rss>
