How are object names generated?

Author Message

Gabriel Ambuehl

Saturday 12 February 2005 6:01:16 am

I have some code that will update attributes in an object. That now works (sure took me long enough ;-). However, it currently doesn't update the name of the object, that only happens when I edit and save the object after changing it in my code.

I suppose I could change contentobject->name, but I can't figure out how to generate the name (after all, there's this handy field in the class where you can define how names get generated, so I don't want to build my own hack)...

Visit http://triligon.org

Gabriel Ambuehl

Saturday 12 February 2005 6:10:14 am

I guess I figured it out. It's done by
eZContentClass::contentObjectName

Visit http://triligon.org

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 31 2025 06:17:04
Script start
Timing: Jan 31 2025 06:17:04
Module start 'layout'
Timing: Jan 31 2025 06:17:04
Module start 'content'
Timing: Jan 31 2025 06:17:04
Module end 'content'
Timing: Jan 31 2025 06:17:04
Script end

Main resources:

Total runtime0.0203 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.1328151.2109
Module start 'layout' 0.00800.0035 739.343836.6484
Module start 'content' 0.01150.0067 775.992290.0313
Module end 'content' 0.01820.0020 866.023429.9922
Script end 0.0202  896.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003014.6576140.0002
Check MTime0.00136.2232140.0001
Mysql Total
Database connection0.00105.128710.0010
Mysqli_queries0.003517.325530.0012
Looping result0.00000.104710.0000
Template Total0.00157.310.0015
Template load0.00126.150210.0012
Template processing0.00021.145110.0002
Override
Cache load0.00073.459910.0007
General
dbfile0.00188.742880.0002
String conversion0.00000.044740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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