PHP Classes

This class is unusable, because you have to extend abstract c...

Recommend this page to a friend!

      Gettable  >  All threads  >  This class is unusable, because you...  >  (Un) Subscribe thread alerts  
Subject:This class is unusable, because you...
Summary:Package rating comment
Messages:4
Author:Piotr Huk
Date:2010-03-02 07:52:53
Update:2010-03-02 15:05:15
 

Piotr Huk rated this package as follows:

Utility: Insufficient
Consistency: Sufficient
Examples: Sufficient

  1. This class is unusable, because you...   Reply   Report abuse  
Picture of Piotr Huk Piotr Huk - 2010-03-02 07:52:53
This class is unusable, because you have to extend abstract class, and then can't extend any other - so this will work in very basic applications.

  2. Re: This class is unusable, because you...   Reply   Report abuse  
Picture of Chris Lam Chris Lam - 2010-03-02 08:23:40 - In reply to message 1 from Piotr Huk
Pretty simple, just extend this class with the super class.

class BaseClass extends Gettable {}

class MyClass extends BaseClass {}

  3. Re: This class is unusable, because you...   Reply   Report abuse  
Picture of Piotr Huk Piotr Huk - 2010-03-02 14:29:24 - In reply to message 2 from Chris Lam
Yes, I know it's possible, but you can get info about a class attributes and much more with for example reflection api, so using your class doesn't make sense for me.

  4. Re: This class is unusable, because you...   Reply   Report abuse  
Picture of Chris Lam Chris Lam - 2010-03-02 15:05:15 - In reply to message 3 from Piotr Huk
i think you don't really understand the purpose of the class. thanks for your comment anyway.