Forums / Suggestions / Object-name-pattern-like custom values

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

eZ debug

Timing: Jan 18 2025 01:12:05
Script start
Timing: Jan 18 2025 01:12:05
Module start 'content'
Timing: Jan 18 2025 01:12:06
Module end 'content'
Timing: Jan 18 2025 01:12:06
Script end

Main resources:

Total runtime0.8023 sec
Peak memory usage4,096.0000 KB
Database Queries47

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 587.8281180.8281
Module start 'content' 0.00830.7908 768.6563475.8906
Module end 'content' 0.79910.0031 1,244.546942.0859
Script end 0.8022  1,286.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4058140.0002
Check MTime0.00130.1667140.0001
Mysql Total
Database connection0.00110.143110.0011
Mysqli_queries0.761194.8723470.0162
Looping result0.00050.0685450.0000
Template Total0.766495.520.3832
Template load0.00230.291120.0012
Template processing0.764195.235020.3820
Template load and register function0.00010.013810.0001
states
state_id_array0.00120.145710.0012
state_identifier_array0.00150.181420.0007
Override
Cache load0.00190.2405160.0001
Sytem overhead
Fetch class attribute can translate value0.00100.122310.0010
Fetch class attribute name0.00080.102920.0004
XML
Image XML parsing0.00070.089010.0007
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00100.1260190.0001
String conversion0.00000.001030.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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