Process data received from a form in php

Author Message

Gambarini Ludovic

Tuesday 22 December 2009 12:10:54 am

Hello,
I created a basic form in eZ Publish and I can display the data sent through a copy of the template "form" and having as my form rename the directory "/collectedinfo".
So until then, everything works properly.
Now I'd like to know how I can retrieve the information sent from my form in either php variables, or simply a new object with php as attributes data received.
Is there a tutorial or a topic to talk about that? Or simply have a track ...
Because I spent some time looking but without much success ...
Thank you in advance for your answers and good day!
PS: Excuse me for my English writing not the best;)

Nicolas Pastorino

Tuesday 22 December 2009 1:22:07 am

Hi Ludovic and welcome in the eZ Community !

For us to help you solve your issue, we'd need more information:

  • Are you using the "Feedback form" content class to gather user input ?
  • How do you need to use the collected data ? (workflow, email, .. ?)

Cheers,
Let us know,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Gambarini Ludovic

Tuesday 22 December 2009 1:43:56 am

Hello and thank you for your reply.
So, yes I am using the "Feedback from" and I'd like to retrieve the data to process (calculations) in PHP.
For example: 12,14,16 data received and would like to make calculations with these numbers ...
Is it possible to do this?
Thank you and greetings

L.G.

Nicolas Pastorino

Tuesday 26 January 2010 2:59:02 am

Hello Ludovic,

Late answer on this, you may want to have a look at the

eZInfocollectorFunctionCollection::fetchCollectedInfoCollection( $collectionID, $contentObjectID );

method in kernel/infocollector/ezinfocollectorfunctioncollection.php l.62 (eZ Publish 4.2). This will give you access to what you need.

Let us know how it goes,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

David Wirth

Wednesday 27 January 2010 6:17:18 am

Is there a straightforward way to convert an information collection object into a node so it can go through workflow and then be published? (This is a variation on a question I asked previously. I think the answer is "develop an extension" but I just want to make sure I'm not missing something simpler.)

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 29 2025 14:44:27
Script start
Timing: Jan 29 2025 14:44:27
Module start 'layout'
Timing: Jan 29 2025 14:44:27
Module start 'content'
Timing: Jan 29 2025 14:44:27
Module end 'content'
Timing: Jan 29 2025 14:44:27
Script end

Main resources:

Total runtime0.0162 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.0058 588.2656151.2266
Module start 'layout' 0.00580.0027 739.492236.6797
Module start 'content' 0.00850.0060 776.171994.8125
Module end 'content' 0.01450.0017 870.984437.9922
Script end 0.0161  908.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.9702140.0002
Check MTime0.00117.0685140.0001
Mysql Total
Database connection0.00116.731110.0011
Mysqli_queries0.002515.292330.0008
Looping result0.00000.098710.0000
Template Total0.00127.410.0012
Template load0.00095.623010.0009
Template processing0.00031.760910.0003
Override
Cache load0.00063.887210.0006
General
dbfile0.00127.512180.0002
String conversion0.00000.042740.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