Forums / Setup & design / Restricting ObjectRelation to objects of certain classes

Restricting ObjectRelation to objects of certain classes

Author Message

Ulrich L.

Friday 29 April 2005 6:24:11 am

Hi,
when using the class attribute ObjectrelationList, you have the possibility to restrict the choice of objects to certain classes specified in the class definition.
However, when using the class attribute ObjectRelation for a single relation, I am missing such a restriction. What is the reason? Is there a way to define a single ObjectRelation with such a class restriction? (Since I'm still a newbie I don't want to deal with thirdparty stuff like AdvancedObjectsRelations)

Xavier Dutoit

Sunday 01 May 2005 7:53:12 am

I'd be interested to know why you're afraid of using contribs like AdvancedObjectRelations.

That's not that complicated to install extensions, and I think the doc I wrote on aor isn't that frighting, is it ?

X+

http://www.sydesy.com

Ulrich L.

Monday 02 May 2005 8:00:00 am

Xavier,
sorry for my scepticism... perhaps I really should make a try. First, I have some questions:

1. I have a test installation already running. Can I add (and remove) EnhancedObjectRelations now without affecting the existing data structures (my own classes which use normal object relations included)?

2. Can I use normal ObjectRelation and EnhancedObjectRelations simultaneously in parallel(e.g. for testing)?

3. Does EnhancedObjectRelations provide every feature usually covered by normal ObjectRelation and ObjectRelationList?

4. Do I understand you right that EnhancedObjectRelation provides the feature I'm looking for in this thread (restricting single relations to certain classes)?

5. @ezTeam (somebody of ez reading this thread?): Will the special features of EnhancedObjectRelations be integrated in a forthcoming standard release?

Thanks,
Uli

Xavier Dutoit

Monday 02 May 2005 10:27:37 am

Hi,

I don't want to force you to try eor, just try to understand what stops you from trying.

Yes, you can add (and remove) EnhancedObjectRelations without altering your own classes which use normal object relations included. You have to run a simple sql query on your database, but it doesn't change the behavior of the rest of the ez application.

You can use normal ObjectRelation and EnhancedObjectRelations simultaneously in parallel.

I think EnhancedObjectRelations provides every feature usually covered by normal ObjectRelation and ObjectRelationList. Tell me if it isn't the case.

Enhancedobjectrelation let you define how to select the attachable objects (class or children of a parent node).

X+

P.S. The pubsvn version is more up to date than the tgz file.

http://www.sydesy.com

Ulrich L.

Friday 10 June 2005 3:52:50 am

Xavier,
do you think the new features concerning object relations of 3.6 cover what EOR was originally made for?

Xavier Dutoit

Friday 10 June 2005 6:25:59 am

No,

As far as I know, it resolves the reverse related link and add coherency (if a is related to b and you delete b, it deletes the relation in a).

However, all the improvments on the user interface are not make their way to the 3.6.

On the pro side, one has reported to me that you don't have to modify the database to install eor.

If you give it a try, could you confirm it to me ?

X+

http://www.sydesy.com

eZ debug

Timing: Jan 20 2025 21:05:31
Script start
Timing: Jan 20 2025 21:05:31
Module start 'content'
Timing: Jan 20 2025 21:05:31
Module end 'content'
Timing: Jan 20 2025 21:05:31
Script end

Main resources:

Total runtime0.1918 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.9688180.7969
Module start 'content' 0.00740.0064 768.765697.9766
Module end 'content' 0.01370.1780 866.7422526.4219
Script end 0.1917  1,393.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.9056200.0002
Check MTime0.00150.7783200.0001
Mysql Total
Database connection0.00140.755410.0014
Mysqli_queries0.128566.96991410.0009
Looping result0.00160.81081390.0000
Template Total0.177192.410.1771
Template load0.00090.458810.0009
Template processing0.176391.895910.1763
Override
Cache load0.00060.305510.0006
Sytem overhead
Fetch class attribute can translate value0.00381.981810.0038
XML
Image XML parsing0.00040.200310.0004
General
dbfile0.01266.5442200.0006
String conversion0.00000.003230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs