Class Atribute : New Class

Author Message

Sergi A

Monday 18 January 2010 3:57:43 am

Hello,

I am creating specific classes for my project... I need to set a new atribute for a new class. The type of this atribute is another Class:

Class A {atribute a1:integer, atribute a2: textLine, ...)

Class B (atribute b1:text, atribute b2: classA,... )

is it possible?

thanks!

Jarosław Heba

Monday 18 January 2010 5:25:33 am

I am not sure whether this is what you need but have you tried with 'Object relation' attribute?

J. 

Sergi A

Tuesday 19 January 2010 4:49:50 am

ok, thanks jaroslaw, that should work for me!

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 05:07:44
Script start
Timing: Jan 18 2025 05:07:44
Module start 'layout'
Timing: Jan 18 2025 05:07:44
Module start 'content'
Timing: Jan 18 2025 05:07:45
Module end 'content'
Timing: Jan 18 2025 05:07:45
Script end

Main resources:

Total runtime0.9266 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.0313152.6250
Module start 'layout' 0.00680.0031 741.656339.4453
Module start 'content' 0.00990.9151 781.1016498.0391
Module end 'content' 0.92500.0016 1,279.14068.3203
Script end 0.9266  1,287.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3634160.0002
Check MTime0.00130.1448160.0001
Mysql Total
Database connection0.00120.130310.0012
Mysqli_queries0.876594.5885570.0154
Looping result0.00060.0692550.0000
Template Total0.893596.420.4468
Template load0.00210.227820.0011
Template processing0.891496.200020.4457
Template load and register function0.00010.013110.0001
states
state_id_array0.00170.186210.0017
state_identifier_array0.00190.203820.0009
Override
Cache load0.00170.1873150.0001
Sytem overhead
Fetch class attribute can translate value0.00080.087720.0004
Fetch class attribute name0.00240.261840.0006
XML
Image XML parsing0.00070.072120.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00090.0966160.0001
String conversion0.00000.001240.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
3content/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
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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs