How do I use the customObjectAttributeHTTPAction to run a custom action from a new datatype as an extension.

Author Message

Stuart Fenton

Friday 12 November 2004 2:46:28 am

I have written some code to run under customObjectAttributeHTTPAction but I am unsure how to get it to run.

The code will be used from the user side of the site not the admin side and it will get used to calculate the price of an item prior to it being added to the basket. It's a simple "Update Prices" button that calculates all the options added before adding it to the basket.

Is there a setting I am suppose to add to the ini files?

I know I can create a custom action using code stored in actions/content_actionhandler.php but I would rather it was self contained in the object itself.

I know that I can add code to the "content.ini.append.php" stored in the exntention settings like:

[ActionSettings]
ExtensionDirectories[]=ezcalculateoption

But that is outside of the object itself.

How do I do this? Any ideas.

Any help is greatly appreciated.

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

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

Main resources:

Total runtime0.0150 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.0051 588.8906151.3047
Module start 'layout' 0.00510.0029 740.195336.7891
Module start 'content' 0.00800.0055 776.984490.3438
Module end 'content' 0.01350.0014 867.328129.9922
Script end 0.0149  897.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.6466140.0002
Check MTime0.00117.0374140.0001
Mysql Total
Database connection0.00096.252310.0009
Mysqli_queries0.002516.485930.0008
Looping result0.00000.087610.0000
Template Total0.00106.910.0010
Template load0.00085.363710.0008
Template processing0.00021.497010.0002
Override
Cache load0.00063.774310.0006
General
dbfile0.00149.045680.0002
String conversion0.00000.119440.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.0001 secs