HOWTO: Writing to ez's database?

Author Message

Dominik Pich

Tuesday 20 April 2004 12:48:17 am

I am writing a 'simple' extension which should list entries in a db and add entries to the db to keep track of items the user bought.

db:
user_ID | product_ID (node id)

eg.:
user U buys product P
pay
confirm
add P to db for U to acknoledge U has payed for P (no posting... should I use a datatype?)
list all products a user has bought. (mymodule/list)

Dominik Pich

Thursday 22 April 2004 12:38:14 am

nevermind.. used plain mysql

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

Main resources:

Total runtime1.1038 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1328151.2109
Module start 'layout' 0.00520.0030 739.343836.6484
Module start 'content' 0.00821.0948 775.9922843.2188
Module end 'content' 1.10300.0008 1,619.21097.8438
Script end 1.1038  1,627.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2933160.0002
Check MTime0.00130.1198160.0001
Mysql Total
Database connection0.00080.069410.0008
Mysqli_queries1.061096.1266520.0204
Looping result0.00040.0405500.0000
Template Total1.055195.620.5275
Template load0.00220.198020.0011
Template processing1.052995.386120.5264
Template load and register function0.00140.126710.0014
states
state_id_array0.00270.242010.0027
state_identifier_array0.00170.149720.0008
Override
Cache load0.00180.1606140.0001
Sytem overhead
Fetch class attribute can translate value0.00050.045110.0005
Fetch class attribute name0.00190.172820.0010
XML
Image XML parsing0.00010.011510.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00210.1934100.0002
String conversion0.00000.002940.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs