News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Drupal4Hu.com:
OOP and PHP or why Drupal rocks and some mistakes
August 24, 2010 @ 11:38:12

On the Drupal4Hu.com site there's a recent post with a complaint about the OOP functionality in PHP and how Drupal developers should deal with its limitations.

While I was always complaining of PHP's inability of adding a method run-time, the problem we face is that you can't replace one either. So if you do what I did in the previous post, namely use the hook-alter patten (already an addition to PHP, I must say) to override the classname, that works. However, if two modules try to do this for two different methods, you fail.

He suggests to those Drupal developers out there that, for version 8 of the popular content management system, they drop the "closed crap that in PHP is called OOP" and work to make something better, implemented themselves. Something that would make it simpler for Drupal developers to create hooks into the main system for their plugins. Be sure to read the comments for other opinions on the post.

0 comments voice your opinion now!
drupal oop mistake opinion runtime method override


blog comments powered by Disqus

Similar Posts

Alex Netkachov's Blog: Zend, Prado, ASP.NET. Which framework is the best?

Matthew Turland's Blog: Setting up EC2 for Drupal with Puppet

Brandon Savage's Blog: A Lesson In Static Methods And Late Static Binding

Juozas Kaziukenas' Blog: Don’t be afraid of PHP 5.3

GnomeOnTheRun.com: Comparing Wordpress, Drupal, and Joomla's Websites


Community Events





Don't see your event here?
Let us know!


version podcast library language opinion update package composer symfony interview framework release install tool laravel introduction community series security voicesoftheelephpant

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework