Forums / Developer / Need advice for class creation
Dan C
Wednesday 11 August 2004 2:29:20 pm
Hi,
I have a pre-existing php app I've created that uses a class that has over 250 attributes. I would like to create a class (or maybe extension?) for ezpub so I can access this data. I need to be able to search through it for certain specified attributes, and I also need a gallery display and a detailed display (templates). Where would I look to get information on how to do this?
Creating a class through the admin adding 250+ attributes does not seem to be overly efficient.... any recommendations would be greatly appreciated. I don't require the objects to be integrated into ezpub as nodes (theres over 50k entries in the db currently, the db is not associated with ezpub in any way, its a separate app, and i would prefer to keep it that way and just have ezpub access the data)
Thanks,
DAn
Bård Farstad
Thursday 12 August 2004 12:22:35 am
If you already have the data and just want to access it via search and display the data I would recommend that you write a separate module which accesses the data directly and displays them using a template. I think that would be the quickest and most flexible solution for you.
I would not recommend creating a content class with 250+ attributes, this is more than it's designed for.
--bård
Documentation: http://ez.no/doc