<?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 02:30:17 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Enforcing Object Types in PHP - Using the Type Hinting Feature in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/4923</guid>
      <link>http://www.phpdeveloper.org/news/4923</link>
      <description><![CDATA[DevShed has posted the <a href="http://www.devshed.com/c/a/PHP/Enforcing-Object-Types-in-PHP-Using-the-Type-Hinting-Feature-in-PHP-5/">last article</a> in their "Enforcing Object Types in PHP" series today - "Using the Type Hinting Feature in PHP5".
<p>
<quote>
<i>
[Returning] to the subject of this last tutorial, I'll introduce another method for enforcing object types in PHP 5: the "Type Hinting" feature. It can also be used in conjunction with the "instanceof" operator that you learned about before, in order to develop PHP applications that implement thorough routines for filtering unwanted objects. Generally speaking, when you finish reading this article, you should be armed with a few more methods for forcing object types in PHP, in this way expanding your overall knowledge of object-oriented programming.
</i>
</quote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Enforcing-Object-Types-in-PHP-Using-the-Type-Hinting-Feature-in-PHP-5/1/">start</a> with an introduction to type hinting and some basic examples of its use. From there, they build up a relevant example with the help of their (X)HTML widget class they've used throughout the series.]]></description>
      <pubDate>Thu, 02 Mar 2006 06:42:19 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Enforcing Object Types in PHP - Filtering Input Objects in PHP 4]]></title>
      <guid>http://www.phpdeveloper.org/news/4855</guid>
      <link>http://www.phpdeveloper.org/news/4855</link>
      <description><![CDATA[In <a href="http://www.devshed.com/c/a/PHP/Enforcing-Object-Types-in-PHP-Filtering-Input-Objects-in-PHP-4/">this latest tutorial</a> on DevShed today, they look at methods to enforce the types of objects in a PHP4 environment.
<p>
<quote>
<i>
When you are writing an object-based web application in PHP, you want to prevent your classes from being convoluted with input objects of the incorrect type. These input objects can cause the application to throw a fatal error. In this article, you will learn how to enforce object types in PHP 4.
<p>
By the end of this series, hopefully you'll have a clear idea of how to force object types inside of your PHP application, in this way avoiding further problems related to the so-called code contamination.
</i>
</quote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Enforcing-Object-Types-in-PHP-Filtering-Input-Objects-in-PHP-4/">start off</a> with the creation of an (X)HTML widgets class to render certain page elements. Then, they show you the creation of a class to render the page and display them in a full document. There are examples of what happens when type checking isn't done and how to enforce the types inside of your class.]]></description>
      <pubDate>Thu, 16 Feb 2006 06:56:50 -0600</pubDate>
    </item>
  </channel>
</rss>
