customHTTPAction in an Event

Author Message

Clemens T

Monday 02 June 2008 3:13:05 am

Hey all,

I'm currently trying to create my own workflow event. I'd like to pass parameters from my template to my workflow process via the before publish trigger, without altering the just edited object. Does anyone know how to do this?

I've been searching a bit myself, and stumbled upon the following function in /kernel/classes/ezworkflowevent.php:

    /*!
     Executes the custom HTTP action
    */
    function customHTTPAction( &$http, $action )
    {
        $eventType =& $this->eventType();
        $eventType->customWorkflowEventHTTPAction( $http, $action, $this );
    }

Can this function be used for this purpose?

Thanks as always!

Maxime Thomas

Tuesday 03 June 2008 10:40:45 pm

Hi,

This function is used for the comment feature in the Approve event. It doesn't end the workflow event and allows to register some notification events for content linked users.

Else, I haven't understood what you want to do.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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

Main resources:

Total runtime0.7441 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.0313152.6250
Module start 'layout' 0.00460.0032 741.656339.4453
Module start 'content' 0.00780.7350 781.1016525.0703
Module end 'content' 0.74290.0012 1,306.17198.3203
Script end 0.7440  1,314.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4215160.0002
Check MTime0.00140.1890160.0001
Mysql Total
Database connection0.00090.122910.0009
Mysqli_queries0.700394.1175540.0130
Looping result0.00050.0686520.0000
Template Total0.706995.020.3534
Template load0.00200.273920.0010
Template processing0.704894.724420.3524
Template load and register function0.00030.038210.0003
states
state_id_array0.00390.517810.0039
state_identifier_array0.00140.182920.0007
Override
Cache load0.00170.2246140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.105220.0004
Fetch class attribute name0.00110.151330.0004
XML
Image XML parsing0.00070.090220.0003
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00080.1014160.0000
String conversion0.00000.000940.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs