Is there a datatype for "Link to Other Object"?

Author Message

Sophi Italy

Monday 12 May 2003 12:25:22 pm

As I understand it, each attribute on a content class is typed with a datatype e.g. String, xmlText, etc.

Is there a datatype for "Link to another content object"?
Is there a data type for "Set of links to other content objects"?

Is is possible for me to figure out the answers to these myself without looking at the source code?

I would like to have something like
class B
some attributes of B
end

class A
name: String
good_bs: Set of Bs
bad_bs: Set of Bs
end

I believe "Related Objects" will allow me to group some related Bs into each A_object. However, I do not believe it will allow me to distinguish the good_bs from the bad_bs for a given A_object.

Thanks.

Paul Borgermans

Tuesday 13 May 2003 2:13:11 am

There is a object relation, but this works for one relation at a time.

For this and other attribute types (like URL) it would be logical to have the option to specify multiple items (like the general related objects do).

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Sophi Italy

Tuesday 13 May 2003 8:28:40 am

Thanks Paul.

Where can I learn more about "object relation"? I tried to google-search the site ez.no and did not have much luck.

Do I understand you correctly that (a) I can currently do:
class A
the_best_B: B
end

but cannot do:
class A
all_good_bs: Set of Bs
end

krish harry

Saturday 24 May 2003 12:34:51 am

class A
name: String
good_bs: Set of Bs
bad_bs: Set of Bs
end

To achive the above couldn't you make another attribute in Class B named "rating" and give enumerated values like "Good", "Bad" and "Best".

Now you are anyways getting list of B's . But with this attribute you can also distiguish between those B's i.e. they are good or bad or best.

I dont know why this idea didn't struct you all ? Or am i completly wrong?

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 10:28:34
Script start
Timing: Jan 18 2025 10:28:34
Module start 'layout'
Timing: Jan 18 2025 10:28:34
Module start 'content'
Timing: Jan 18 2025 10:28:35
Module end 'content'
Timing: Jan 18 2025 10:28:35
Script end

Main resources:

Total runtime0.8243 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.0469152.6406
Module start 'layout' 0.00790.0046 740.687539.4766
Module start 'content' 0.01250.8105 780.1641582.8750
Module end 'content' 0.82300.0012 1,363.039112.1250
Script end 0.8243  1,375.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4478160.0002
Check MTime0.00150.1767160.0001
Mysql Total
Database connection0.00120.142810.0012
Mysqli_queries0.767293.0749620.0124
Looping result0.00080.1022600.0000
Template Total0.786895.420.3934
Template load0.00240.287820.0012
Template processing0.784495.157920.3922
Template load and register function0.00030.030910.0003
states
state_id_array0.00150.182110.0015
state_identifier_array0.00230.280520.0012
Override
Cache load0.00200.2448430.0000
Sytem overhead
Fetch class attribute can translate value0.00160.189430.0005
Fetch class attribute name0.00130.157350.0003
XML
Image XML parsing0.00090.108530.0003
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00110.1298170.0001
String conversion0.00000.002040.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs