Can we create classes in drupal?

kumaranand02 - March 1, 2009 - 06:02

Hi Everyone,

Can anybody give there opinion of the following queries:-

Can we create classes just like in php5 programming in drupal 6? If we are creating classes, is it beneficial, how it will interact will drupal framework? If you have any example, please attach that also.

Pls send as soon as possible. Because according that we have to process in my project.

With Thanks and Regards,
Anand Kumar

While you can create classes

nevets - March 1, 2009 - 06:25

While you can create classes Drupal core is not object orientated so the benefit would be internal to your modules code. Views 2 for example uses classes to a large degree. There is also a module (I forget the name) that is working at provide oo interfaces to core Drupal objects.

_

WorldFallz - March 1, 2009 - 14:56

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

 
 

Drupal is a registered trademark of Dries Buytaert.