Thank you. With this, it works fine now.
On Friday, September 7, 2012 8:49:07 PM UTC+5:30, Steve Clay wrote:
> You're very close! Look at add_subtype() and see how other plugins use it.
> Steve
> --
> http://www.mrclay.org/
> On Sep 7, 2012, at 10:53 AM, Krishna Shetty <krishna....@gmail.com<javascript:>>
> wrote:
> I have created a class which extends ElggObject. I have put this in
> 'classes' folder of my plugin.
> I can instantiate( new MyClass() ) this class like this works fine .And I
> can save the details in to my class instance, works fine.
> I can retrieve all my class objects using elgg_get_entities() with type as
> 'object' and subtype as sub type defined in my class.
> Issue is, objects returned by elgg_get_entities() are not an 'instanceof'
> of my class but instance of ElggObject.
> Please tell me if I need to take care any thing for this to work
> Thanks,Krishna