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 15 2025 01:36:23
Script start
Timing: Jan 15 2025 01:36:23
Module start 'layout'
Timing: Jan 15 2025 01:36:23
Module start 'content'
Timing: Jan 15 2025 01:36:24
Module end 'content'
Timing: Jan 15 2025 01:36:24
Script end

Main resources:

Total runtime1.3660 sec
Peak memory usage6,144.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 687.0469183.6875
Module start 'layout' 0.00680.0039 870.734452.5625
Module start 'content' 0.01071.3536 923.29691,781.0703
Module end 'content' 1.36430.0016 2,704.367264.5469
Script end 1.3660  2,768.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00610.4474160.0004
Check MTime0.00160.1204160.0001
Mysql Total
Database connection0.00080.057410.0008
Mysqli_queries1.308195.7648540.0242
Looping result0.00060.0427520.0000
Template Total1.318696.520.6593
Template load0.00380.275720.0019
Template processing1.314896.254220.6574
Template load and register function0.00230.171310.0023
states
state_id_array0.00140.099710.0014
state_identifier_array0.00310.225020.0015
Override
Cache load0.00340.2482130.0003
Sytem overhead
Fetch class attribute can translate value0.00060.045520.0003
Fetch class attribute name0.00290.212730.0010
XML
Image XML parsing0.00080.057820.0004
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00130.0963170.0001
String conversion0.00000.000840.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.0003 secs