Object-name-pattern-like custom values

Author Message

Piotrek Karaƛ

Tuesday 18 November 2008 8:57:48 pm

Hi guys,

This may not be a best idea ever, but maybe it's something. I like to create good and planned object name patterns for 2 reasons:
- end-users find them useful
- object name is inexpensive (no extra fetches, I believe, to represent entire object)

Now, what if we had few more fields like that? Say, 1-3 fields named "Custom object pattern", that developer could utilize to have object summaries, some extra combinations for different purposes.

Example:
Object name pattern:

<full_name|short_name>, [<identifier>]

Custom object pattern:

<lead>, [<identifier>]

Of course, it would have to be implemented in a similar way to object name, so that it remains inexpensive.

Just a thought.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 04:24:07
Script start
Timing: Jan 18 2025 04:24:07
Module start 'layout'
Timing: Jan 18 2025 04:24:07
Module start 'content'
Timing: Jan 18 2025 04:24:08
Module end 'content'
Timing: Jan 18 2025 04:24:08
Script end

Main resources:

Total runtime1.0960 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.0169 588.0313152.6406
Module start 'layout' 0.01690.0040 740.671939.4766
Module start 'content' 0.02091.0737 780.1484472.7109
Module end 'content' 1.09470.0013 1,252.85948.1406
Script end 1.0960  1,261.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3477160.0002
Check MTime0.00140.1284160.0001
Mysql Total
Database connection0.01060.967910.0106
Mysqli_queries1.043095.1559460.0227
Looping result0.00040.0367440.0000
Template Total1.045195.420.5225
Template load0.00220.203520.0011
Template processing1.042895.143020.5214
Template load and register function0.00010.009010.0001
states
state_id_array0.00110.104010.0011
state_identifier_array0.00100.095820.0005
Override
Cache load0.00180.1675160.0001
Sytem overhead
Fetch class attribute can translate value0.00040.036210.0004
Fetch class attribute name0.00060.052120.0003
XML
Image XML parsing0.00060.053910.0006
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00080.0689170.0000
String conversion0.00000.002140.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs