<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: OOP in PHP from a .NET OOP Perspective: The Error Class</title>
	<atom:link href="http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/</link>
	<description>Internet Marketing, Website Promotion and Blogging Advice</description>
	<lastBuildDate>Fri, 12 Mar 2010 19:11:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cpradio</title>
		<link>http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/comment-page-1/#comment-9949</link>
		<dc:creator>cpradio</dc:creator>
		<pubDate>Fri, 08 Jun 2007 15:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/#comment-9949</guid>
		<description>More than happy to help Peter.  I am actually finally getting started on my next installment regarding the Design class I use in my applications.

Hopefully, what I have so far and what I plan on going into in the next installments of OOP, will give everyone a great library of classes to extend and use.</description>
		<content:encoded><![CDATA[<p>More than happy to help Peter.  I am actually finally getting started on my next installment regarding the Design class I use in my applications.</p>
<p>Hopefully, what I have so far and what I plan on going into in the next installments of OOP, will give everyone a great library of classes to extend and use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/comment-page-1/#comment-8967</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 06 Jun 2007 01:12:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/#comment-8967</guid>
		<description>I hardly have any experience in real-world projects with programming, but I do have programming experience, and nothing makes me more &quot;giddy&quot; than digging deep into OOP, your articles are invigorating and I&#039;m enjoying refreshing my mind (I&#039;ve been away from programming anything for a long while)  Now I will enjoy coming into the world like a fresh prog. newb.  Again, thank you for your contributions to the community and my brain!</description>
		<content:encoded><![CDATA[<p>I hardly have any experience in real-world projects with programming, but I do have programming experience, and nothing makes me more &#8220;giddy&#8221; than digging deep into OOP, your articles are invigorating and I&#8217;m enjoying refreshing my mind (I&#8217;ve been away from programming anything for a long while)  Now I will enjoy coming into the world like a fresh prog. newb.  Again, thank you for your contributions to the community and my brain!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpradio</title>
		<link>http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/comment-page-1/#comment-5908</link>
		<dc:creator>cpradio</dc:creator>
		<pubDate>Mon, 21 May 2007 20:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/#comment-5908</guid>
		<description>I should also mention, that the above comment is largely based on OOP in general.  PHP&#039;s documentation over static classes does not cover constructors and their roles in a static class.

It may be possible that PHP adequately runs the __construct method for a static class, but I am willing to bet if it does, it probably runs it with every static method call, which defeats our purpose of keeping all errors that occur on the page in one instance of the class.</description>
		<content:encoded><![CDATA[<p>I should also mention, that the above comment is largely based on OOP in general.  PHP&#8217;s documentation over static classes does not cover constructors and their roles in a static class.</p>
<p>It may be possible that PHP adequately runs the __construct method for a static class, but I am willing to bet if it does, it probably runs it with every static method call, which defeats our purpose of keeping all errors that occur on the page in one instance of the class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpradio</title>
		<link>http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/comment-page-1/#comment-5907</link>
		<dc:creator>cpradio</dc:creator>
		<pubDate>Mon, 21 May 2007 20:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/#comment-5907</guid>
		<description>The variables and classes are static.  The constructor will not be executed, because there is no physical definition of the class.  IE: $classVar = new Error();

So since the method is static, you have to use a custom method to initialize your variables, or be very cautious if you do not by adding a lot of IF statements to ensure they were initialized before using them.

The __construct method is EXCELLENT for non-static classes and should be used, however, static variables and classes are not accessible by a constructor.</description>
		<content:encoded><![CDATA[<p>The variables and classes are static.  The constructor will not be executed, because there is no physical definition of the class.  IE: $classVar = new Error();</p>
<p>So since the method is static, you have to use a custom method to initialize your variables, or be very cautious if you do not by adding a lot of IF statements to ensure they were initialized before using them.</p>
<p>The __construct method is EXCELLENT for non-static classes and should be used, however, static variables and classes are not accessible by a constructor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin K</title>
		<link>http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/comment-page-1/#comment-5904</link>
		<dc:creator>Martin K</dc:creator>
		<pubDate>Mon, 21 May 2007 20:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/01/24/oop-in-php-from-a-net-oop-perspective-the-error-class/#comment-5904</guid>
		<description>In your example you use a initialize method for your variables. I&#039;m curious about why you don&#039;t use the __construct method for initialization?. Or are there any drawbacks with __construct?</description>
		<content:encoded><![CDATA[<p>In your example you use a initialize method for your variables. I&#8217;m curious about why you don&#8217;t use the __construct method for initialization?. Or are there any drawbacks with __construct?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
