Object Relations Backend

Author Message

Erik Weinmaster

Wednesday 27 May 2009 2:26:19 pm

Hello,

I am trying to figure out how to essentially do the work that ezpublish does for assigning objects to the array under an 'Object Relations' attribute. I already have a list of other nodes that I want to assign as related to 1 particular node, but I don't want to give this option to the user (as they wouldn't know what to do).
I noticed that ezpublish uses checkboxes named as 'SelectedObjectIDArray[]' to store the different contentobject_ids of the nodes to store in the array for related objects, and that this gets processed in kernel/classes/datatypes/ezobjectrelationlist/ezobjectrelationlisttype.php in the function set_object_relation_list(). However, what I don't know is; Is this all there is to it? If not, what other processing steps will I need in order to finish the action mentioned above?

thanks,
-erik

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 18 2025 20:58:01
Script start
Timing: Jan 18 2025 20:58:01
Module start 'layout'
Timing: Jan 18 2025 20:58:01
Module start 'content'
Timing: Jan 18 2025 20:58:02
Module end 'content'
Timing: Jan 18 2025 20:58:02
Script end

Main resources:

Total runtime0.7374 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 587.9141152.6250
Module start 'layout' 0.00900.0038 740.539139.4453
Module start 'content' 0.01280.7231 779.9844401.7109
Module end 'content' 0.73590.0014 1,181.69538.1641
Script end 0.7373  1,189.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4961160.0002
Check MTime0.00140.1876160.0001
Mysql Total
Database connection0.00100.129110.0010
Mysqli_queries0.696394.4266460.0151
Looping result0.00060.0754440.0000
Template Total0.698994.820.3494
Template load0.00260.349020.0013
Template processing0.696394.431620.3481
Template load and register function0.00030.035310.0003
states
state_id_array0.00090.118310.0009
state_identifier_array0.00090.126720.0005
Override
Cache load0.00210.289180.0003
Sytem overhead
Fetch class attribute can translate value0.00080.107210.0008
Fetch class attribute name0.00130.175110.0013
XML
Image XML parsing0.00020.021410.0002
class_abstraction
Instantiating content class attribute0.00000.000910.0000
General
dbfile0.00160.2114100.0002
String conversion0.00000.001640.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs