<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>About Web Development by Activo &#187; Object Oriented</title>
	<atom:link href="http://www.activoinc.com/blog/tag/object-oriented/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.activoinc.com/blog</link>
	<description>Web Development in a Web 2.0 World</description>
	<lastBuildDate>Fri, 29 Jan 2010 17:16:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Method Overloading Workaround in PHP5</title>
		<link>http://www.activoinc.com/blog/2009/06/25/method-overloading-workaround-in-php5/</link>
		<comments>http://www.activoinc.com/blog/2009/06/25/method-overloading-workaround-in-php5/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 03:35:50 +0000</pubDate>
		<dc:creator>Ron Peled</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[method overloading]]></category>
		<category><![CDATA[Object Oriented]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.activoinc.com/blog/?p=237</guid>
		<description><![CDATA[This past week I had the need to use overloaded methods in PHP 5. Overloading a method in object oriented design is especially helpful when trying to achieve the same operation while the code needs to be triggered from different states of the application or even different locations of the application. In my case, I [...]]]></description>
			<content:encoded><![CDATA[<p>This past week I had the need to use overloaded methods in PHP 5. Overloading a method in object oriented design is especially helpful when trying to achieve the same operation while the code needs to be triggered from different states of the application or even different locations of the application. In my case, I needed an overloaded constructor to a PHP class. Yes, constructors are also a bit different in PHP 5 but still workable.</p>
<p><img class="alignnone size-full wp-image-239" title="overload_cargo" src="http://www.activoinc.com/blog/wp-content/uploads/2009/06/overload_cargo.jpg" alt="overload_cargo" width="700" height="406" /></p>
<p>To make a long story short, in PHP 5 there is no real way to overload a method like you can with Java. However, it seems like the developers of PHP 5 did have overloading methods in mind and allowed some form of it. It seems like allowing a real method overloads in PHP would be a special case of what the core developers actually allowed to do. The reason behind the current syntax is beyound me. I even tried to look for a PHP roadmap and see if proper method overloading will be introduced in the future but I could not find anything relevant.</p>
<p>A user with the name Noel has posted on DZone a little <a href="http://snippets.dzone.com/posts/show/3237">snippet of code that shows exactly how method overloading in PHP5</a> can be achieved.</p>
<p>Do you know of any intentions on including real method overloading in PHP6?</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>August 25, 2008 -- <a href="http://www.activoinc.com/blog/2008/08/25/zencart-ver-1-4-looking-ahead/" title="Looking Ahead: ZenCart ver 1.4">Looking Ahead: ZenCart ver 1.4</a> (3)</li><li>October 15, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/15/zencart-1-3-8-and-php-5-2-11-bug-problem-login-to-admin-area/" title="ZenCart 1.3.8 and PHP 5.2.11 Bug: problem login to admin area">ZenCart 1.3.8 and PHP 5.2.11 Bug: problem login to admin area</a> (3)</li><li>August 1, 2009 -- <a href="http://www.activoinc.com/blog/2009/08/01/php-simplexml-rules/" title="PHP SimpleXML Rules!">PHP SimpleXML Rules!</a> (0)</li><li>February 16, 2009 -- <a href="http://www.activoinc.com/blog/2009/02/16/zend-studio-61-wrong-way-to-enhance-a-php-ide/" title="Zend Studio 6.1: Wrong Way to Enhance a PHP IDE!">Zend Studio 6.1: Wrong Way to Enhance a PHP IDE!</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.activoinc.com/blog/2009/06/25/method-overloading-workaround-in-php5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking Ahead: ZenCart ver 1.4</title>
		<link>http://www.activoinc.com/blog/2008/08/25/zencart-ver-1-4-looking-ahead/</link>
		<comments>http://www.activoinc.com/blog/2008/08/25/zencart-ver-1-4-looking-ahead/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 09:06:56 +0000</pubDate>
		<dc:creator>Ron Peled</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ZenCart]]></category>
		<category><![CDATA[eCommerce]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[MPTT]]></category>
		<category><![CDATA[Object Oriented]]></category>
		<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ZenCart Performance]]></category>
		<category><![CDATA[ZenCart Roadmap]]></category>

		<guid isPermaLink="false">http://www.activoinc.com/blog/?p=32</guid>
		<description><![CDATA[The ZenCart developer team seems to be hard at work and preparing to deliver a new version of ZenCart: ver 1.4. The core developers posted a roadmap brief for version 1.4 back in September of 2007. Recently, additional entries have been posted in the forums describing in more detail the upcoming changes and signaling a [...]]]></description>
			<content:encoded><![CDATA[<p>The ZenCart developer team seems to be hard at work and preparing to deliver a new version of ZenCart: ver 1.4. The core developers posted a roadmap brief for version 1.4 back in September of 2007. Recently, additional entries have been posted in the forums describing in more detail the upcoming changes and signaling a new release is to be expected soon.</p>
<p><img class="alignnone size-full wp-image-33" title="zencart-version-1.4 (future)" src="http://www.activoinc.com/blog/wp-content/uploads/2008/08/zencart-version-1-4.jpg" alt="" width="470" height="101" /></p>
<p><strong>The currently described updates to ZenCart are done all around the DB, its architecture, and improving its performance. To summarise from the ZenCart forums:</strong></p>
<blockquote><p><span style="text-decoration: underline;">New Database Driver Layer</span><br />
Extremely light/flexible drivers make it easier to support other Database Types<br />
Preliminary support for innodb and mysql transactions</p>
<p><span style="text-decoration: underline;">Sql Caching system rewritten</span><br />
Much easier to add new caching types<br />
Preliminary Support for Memcache</p>
<p><span style="text-decoration: underline;">Use of MPTT for category structure</span><br />
Reduces number of queries needed to &#8216;describe&#8217; the category structure<br />
Improves user experience thru reduced page load times</p>
<p><span style="text-decoration: underline;">Supporting Classes to reduce query load</span><br />
Hugely reduces queries needed<br />
Reuses queries using Cache to further improve performance</p></blockquote>
<p><strong>The roadmap for ZenCart ver 1.4 promises the following updates to the code (summarized):</strong></p>
<ul>
<li>Better usage of PHP 5.2 features. This also means 5.2 will be the new minimum requirement.</li>
<li>More Object Oriented code, less of the old osCommerce code.</li>
<li>Lots of DB improvements (some is described above, seems more is yet to come).</li>
<li>Category structure converted to MPTT format. MPTT stands for Modified Preorder Tree Traversal (<a href="http://www.wallpaperama.com/forums/mptt-modified-pre-order-tree-transversal-php-tree-menu-script-t5713.html" target="_blank">explanation of MPTT</a>).</li>
<li>Performance improvements for sites with lots of product attributes.</li>
<li>More function libraries converted to classes.</li>
<li>Duplicate components shared between admin and catalog.</li>
<li>Template system enhancements: less tables and more admin control.</li>
<li>Additional notifiers for the observer system.</li>
<li>Transaction support with InnoDB. Also mentioned as initial stage according to the recent posts of the updates that were done so far.</li>
<li>SwiftMailer instead of phpMailer.</li>
<li>Stock and SKU per product attribute.</li>
<li>Security enhancements.</li>
</ul>
<p>Keep up the good work!</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>June 18, 2009 -- <a href="http://www.activoinc.com/blog/2009/06/18/the-case-for-zencart-supporting-the-long-tail-of-ecommerce/" title="The Case for ZenCart: Supporting the Long Tail of eCommerce">The Case for ZenCart: Supporting the Long Tail of eCommerce</a> (2)</li><li>September 22, 2008 -- <a href="http://www.activoinc.com/blog/2008/09/22/zencart-and-magento-for-ecommerce/" title="ZenCart and Magento for eCommerce">ZenCart and Magento for eCommerce</a> (2)</li><li>January 28, 2009 -- <a href="http://www.activoinc.com/blog/2009/01/28/open-source-ecommerce-the-good-the-bad-and-the-ugly/" title="Open Source eCommerce: the Good, the Bad, and the Ugly!">Open Source eCommerce: the Good, the Bad, and the Ugly!</a> (1)</li><li>October 15, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/15/zencart-1-3-8-and-php-5-2-11-bug-problem-login-to-admin-area/" title="ZenCart 1.3.8 and PHP 5.2.11 Bug: problem login to admin area">ZenCart 1.3.8 and PHP 5.2.11 Bug: problem login to admin area</a> (3)</li><li>June 25, 2009 -- <a href="http://www.activoinc.com/blog/2009/06/25/method-overloading-workaround-in-php5/" title="Method Overloading Workaround in PHP5">Method Overloading Workaround in PHP5</a> (0)</li><li>December 7, 2008 -- <a href="http://www.activoinc.com/blog/2008/12/07/a-list-of-cms-ecommerce-and-blogging-systems-that-officially-support-jquery/" title="A list of CMS and eCommerce systems that officially support jQuery">A list of CMS and eCommerce systems that officially support jQuery</a> (2)</li><li>October 29, 2008 -- <a href="http://www.activoinc.com/blog/2008/10/29/is-magento-commerce-the-new-joomla/" title="Is Magento Commerce the new Joomla?">Is Magento Commerce the new Joomla?</a> (1)</li><li>August 21, 2008 -- <a href="http://www.activoinc.com/blog/2008/08/21/authorizenet-changes-transaction-id-field-zencart-passes-tests/" title="Authorize.net changes Transaction ID field &#8211; ZenCart passes tests">Authorize.net changes Transaction ID field &#8211; ZenCart passes tests</a> (0)</li><li>May 26, 2008 -- <a href="http://www.activoinc.com/blog/2008/05/26/zencart-develop-an-advanced-plugin-without-overwriting-core-files/" title="ZenCart: Develop an Advanced Plugin Without Overwriting Core Files">ZenCart: Develop an Advanced Plugin Without Overwriting Core Files</a> (1)</li><li>October 22, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/22/how-to-detect-if-the-page-is-secure-in-a-magento-template/" title="How to Detect if the Page is Secure in a Magento Template?">How to Detect if the Page is Secure in a Magento Template?</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.activoinc.com/blog/2008/08/25/zencart-ver-1-4-looking-ahead/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
