<?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>Kommentare zu: Singleton mit PHP 5</title>
	<atom:link href="http://www.madcatswelt.org/2008/08/singleton-mit-php-5.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.madcatswelt.org/2008/08/singleton-mit-php-5.html</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 15:00:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Von: Dominik Jungowski</title>
		<link>http://www.madcatswelt.org/2008/08/singleton-mit-php-5.html#comment-1755</link>
		<dc:creator>Dominik Jungowski</dc:creator>
		<pubDate>Sat, 15 Nov 2008 18:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/Ruby/2008/08/singleton-mit-php-5.html#comment-1755</guid>
		<description>Es geht auch etwas einfacher:

private static $instance;
public final static function getInstance() {            
        if(!isset(self::$instance)) {  
            self::$instance = new self();  
        }  
          
        return self::$instance;
}

so spart man sich die überprüfung auf null, die übrigens mit is_null() eleganter gelöst wird ;)</description>
		<content:encoded><![CDATA[<p>Es geht auch etwas einfacher:</p>
<p>private static $instance;<br />
public final static function getInstance() {<br />
        if(!isset(self::$instance)) {<br />
            self::$instance = new self();<br />
        }  </p>
<p>        return self::$instance;<br />
}</p>
<p>so spart man sich die überprüfung auf null, die übrigens mit is_null() eleganter gelöst wird ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: MadCat</title>
		<link>http://www.madcatswelt.org/2008/08/singleton-mit-php-5.html#comment-1750</link>
		<dc:creator>MadCat</dc:creator>
		<pubDate>Sat, 06 Sep 2008 15:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/Ruby/2008/08/singleton-mit-php-5.html#comment-1750</guid>
		<description>Nobody is perfect. :D</description>
		<content:encoded><![CDATA[<p>Nobody is perfect. :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: robert</title>
		<link>http://www.madcatswelt.org/2008/08/singleton-mit-php-5.html#comment-1749</link>
		<dc:creator>robert</dc:creator>
		<pubDate>Sat, 06 Sep 2008 08:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/Ruby/2008/08/singleton-mit-php-5.html#comment-1749</guid>
		<description>Oh verdammt, nicht mal mehr php code kann ich lesen. So schnell kann es gehen :)</description>
		<content:encoded><![CDATA[<p>Oh verdammt, nicht mal mehr php code kann ich lesen. So schnell kann es gehen :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: MadCat</title>
		<link>http://www.madcatswelt.org/2008/08/singleton-mit-php-5.html#comment-1746</link>
		<dc:creator>MadCat</dc:creator>
		<pubDate>Fri, 05 Sep 2008 18:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/Ruby/2008/08/singleton-mit-php-5.html#comment-1746</guid>
		<description>Er ist doch private. ;)</description>
		<content:encoded><![CDATA[<p>Er ist doch private. ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: robert</title>
		<link>http://www.madcatswelt.org/2008/08/singleton-mit-php-5.html#comment-1745</link>
		<dc:creator>robert</dc:creator>
		<pubDate>Thu, 04 Sep 2008 17:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/Ruby/2008/08/singleton-mit-php-5.html#comment-1745</guid>
		<description>Hallo David,

wenn ich mich rech entsinne kannst du denn constructor noch auf private setzten und dann kann keiner mehr ein Object instanzieren ohne über getInstanz() zu gehen.

Oh man ist der php kram lang her :)

gruss

robert</description>
		<content:encoded><![CDATA[<p>Hallo David,</p>
<p>wenn ich mich rech entsinne kannst du denn constructor noch auf private setzten und dann kann keiner mehr ein Object instanzieren ohne über getInstanz() zu gehen.</p>
<p>Oh man ist der php kram lang her :)</p>
<p>gruss</p>
<p>robert</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 2/4 queries in 0.002 seconds using memcached
Object Caching 268/269 objects using memcached
Content Delivery Network via Amazon Web Services: CloudFront: static.madcatswelt.org

Served from: www.madcatswelt.org @ 2012-02-08 04:25:54 -->
