How to edit 'status' attribute triggered by action?

Author Message

Bill Smith

Tuesday 05 December 2006 7:19:49 pm

For example,

for online shopping, there is an item

previously, its status is available. {$item.data_map.status = 0}

when someone buy this item, its status should be changed to unavailable.

something like {set $item.data_map.status = 0}}

but how to perform this action,

/* status is an attribute of the class item, and is stored in database */

Thanks very much

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 19:12:05
Script start
Timing: Jan 18 2025 19:12:05
Module start 'layout'
Timing: Jan 18 2025 19:12:05
Module start 'content'
Timing: Jan 18 2025 19:12:06
Module end 'content'
Timing: Jan 18 2025 19:12:06
Script end

Main resources:

Total runtime1.0440 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.0066 589.8438152.6406
Module start 'layout' 0.00660.0034 742.484439.4766
Module start 'content' 0.01011.0325 781.9609398.4688
Module end 'content' 1.04250.0015 1,180.42978.1250
Script end 1.0440  1,188.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2939160.0002
Check MTime0.00130.1198160.0001
Mysql Total
Database connection0.00160.157210.0016
Mysqli_queries0.998795.6584460.0217
Looping result0.00090.0826440.0000
Template Total1.007196.520.5035
Template load0.00230.219520.0011
Template processing1.004896.238020.5024
Template load and register function0.00030.025010.0003
states
state_id_array0.00120.117410.0012
state_identifier_array0.00080.078420.0004
Override
Cache load0.00180.1708110.0002
Sytem overhead
Fetch class attribute can translate value0.00070.067910.0007
Fetch class attribute name0.00070.069110.0007
XML
Image XML parsing0.00020.021010.0002
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00070.0648100.0001
String conversion0.00000.000540.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs