Sunday 03 October 2010 5:37:49 am
By : Jérôme Vieilledent
If you needed once to develop a custom datatype in eZ Publish, you must know what pain it can be...
No official developer documentation is available and eZDataType class which must be overridden by your custom datatype really lacks of API doc (doxygen, phpdoc).
Searching the community portal a bit, you'll find a nice tutorial by Thomas Koch. This tutorial can be a good kickstart but it remains a bit complicated. Moreover, it doesn't cover all features offered by eZ Publish datatypes.
So, as I also needed to develop a new custom datatype for my Amazon extension, jvAmazonAdvertising, I decided to dissect this not-so-well-known datatype functionnality in order to write a new tutorial : Datatypes development : The definitive guide.
Stay tuned for updates ! ;-)
Timing: | Jan 18 2025 02:12:10 |
Script start | |
Timing: | Jan 18 2025 02:12:10 |
Module start 'layout' | |
Timing: | Jan 18 2025 02:12:10 |
Module start 'content' | |
Timing: | Jan 18 2025 02:12:10 |
Module end 'content' | |
Timing: | Jan 18 2025 02:12:10 |
Script end |
Total runtime | 0.0196 sec |
Peak memory usage | 2,048.0000 KB |
Database Queries | 3 |
Checkpoint | Start (sec) | Duration (sec) | Memory at start (KB) | Memory used (KB) |
---|---|---|---|---|
Script start | 0.0000 | 0.0094 | 589.5313 | 153.4844 |
Module start 'layout' | 0.0094 | 0.0030 | 743.0156 | 39.4609 |
Module start 'content' | 0.0124 | 0.0053 | 782.4766 | 89.9688 |
Module end 'content' | 0.0177 | 0.0019 | 872.4453 | 30.2891 |
Script end | 0.0195 | 902.7344 |
Accumulator | Duration (sec) | Duration (%) | Count | Average (sec) |
---|---|---|---|---|
Ini load | ||||
Load cache | 0.0026 | 13.1351 | 14 | 0.0002 |
Check MTime | 0.0011 | 5.7143 | 14 | 0.0001 |
Mysql Total | ||||
Database connection | 0.0024 | 12.2233 | 1 | 0.0024 |
Mysqli_queries | 0.0046 | 23.3788 | 3 | 0.0015 |
Looping result | 0.0000 | 0.0719 | 1 | 0.0000 |
Template Total | 0.0015 | 7.7 | 1 | 0.0015 |
Template load | 0.0008 | 4.1870 | 1 | 0.0008 |
Template processing | 0.0007 | 3.5068 | 1 | 0.0007 |
Override | ||||
Cache load | 0.0006 | 2.8523 | 1 | 0.0006 |
General | ||||
dbfile | 0.0003 | 1.5651 | 8 | 0.0000 |
String conversion | 0.0000 | 0.0475 | 4 | 0.0000 |
Note: percentages do not add up to 100% because some accumulators overlap |
Usage | Requested template | Template | Template loaded | Edit | Override |
---|---|---|---|---|---|
1 | print_pagelayout.tpl | <No override> | extension/community/design/community/templates/print_pagelayout.tpl | ||
Number of times templates used: 1 Number of unique templates used: 1 |
Time used to render debug report: 0.0001 secs