Object relation

Author Message

Sao Tavi

Friday 27 May 2011 10:43:19 am

As a continuation of the previous post. Sorry for posting strange things around here, I could do them directly in php, but the purpose of my project is learning eZ Publish for later commercial applications.

So, members are able to create private data. I allowed them to link those created object between themselves (that private data can contain a custom object that retains the relation type and the relation item).

The problem:

1) data should not be linked with itself

2) there should not be possible to link with the same object 2 times

Is this possible or should I create a custom data type that extends Object relation with the new features?

Sao Tavi

Saturday 28 May 2011 6:23:03 am

I am having problems finding the location of the source code for object relation. Anyone has any idea where it might be?

I believe that I have not choice but to create a custom datatype based on object relation datatype.

Sao Tavi

Saturday 28 May 2011 4:32:35 pm

Found the file, they are all in kernel/classes/datatypes/...

Sao Tavi

Sunday 29 May 2011 8:20:41 am

kernel/classes/datatypes/ezobjectrelation/ezobjectrelationtype.php  - line 206

             if ( $selectionType < 0 and
                 $selectionType > 2 )

I wonder when this happens...

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 02:03:52
Script start
Timing: Jan 18 2025 02:03:52
Module start 'layout'
Timing: Jan 18 2025 02:03:52
Module start 'content'
Timing: Jan 18 2025 02:03:53
Module end 'content'
Timing: Jan 18 2025 02:03:53
Script end

Main resources:

Total runtime0.8648 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.9063152.6094
Module start 'layout' 0.00450.0025 741.515639.4375
Module start 'content' 0.00700.8564 780.9531442.4766
Module end 'content' 0.86330.0015 1,223.429712.1953
Script end 0.8648  1,235.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3667160.0002
Check MTime0.00130.1469160.0001
Mysql Total
Database connection0.00040.051010.0004
Mysqli_queries0.824095.2819580.0142
Looping result0.00050.0584560.0000
Template Total0.833896.420.4169
Template load0.00210.239820.0010
Template processing0.831796.173520.4159
Template load and register function0.00010.011410.0001
states
state_id_array0.00140.164210.0014
state_identifier_array0.00120.134320.0006
Override
Cache load0.00180.2026180.0001
Sytem overhead
Fetch class attribute can translate value0.00080.098110.0008
Fetch class attribute name0.00150.172440.0004
XML
Image XML parsing0.00010.016710.0001
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00130.1525100.0001
String conversion0.00000.000940.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs