Need advice for class creation

Author Message

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 14:03:07
Script start
Timing: Jan 19 2025 14:03:07
Module start 'layout'
Timing: Jan 19 2025 14:03:07
Module start 'content'
Timing: Jan 19 2025 14:03:08
Module end 'content'
Timing: Jan 19 2025 14:03:08
Script end

Main resources:

Total runtime0.6964 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1563152.6250
Module start 'layout' 0.00510.0025 741.781339.4453
Module start 'content' 0.00760.6872 781.2266520.7891
Module end 'content' 0.69480.0016 1,302.01568.1641
Script end 0.6964  1,310.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4729160.0002
Check MTime0.00140.1973160.0001
Mysql Total
Database connection0.00070.103110.0007
Mysqli_queries0.652693.7063540.0121
Looping result0.00050.0689520.0000
Template Total0.665895.620.3329
Template load0.00190.277720.0010
Template processing0.663895.318620.3319
Template load and register function0.00030.038010.0003
states
state_id_array0.00460.662410.0046
state_identifier_array0.00110.163520.0006
Override
Cache load0.00150.2171130.0001
Sytem overhead
Fetch class attribute can translate value0.00090.124220.0004
Fetch class attribute name0.00120.175830.0004
XML
Image XML parsing0.00240.345320.0012
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00240.3501170.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs