[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/webform/includes/ -> webform.report.inc (summary)

(no description)

Author: Nathan Haug <nate@lullabot.com>
File Size: 979 lines (36 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 22 functions

  webform_results_submissions()
  theme_webform_results_per_page()
  theme_webform_results_submissions_header()
  template_preprocess_webform_results_submissions()
  webform_results_table()
  theme_webform_results_table_header()
  theme_webform_results_table()
  webform_results_clear()
  webform_results_clear_form()
  webform_results_clear_form_submit()
  webform_results_download_form()
  webform_results_download_range_validate()
  webform_results_download_form_submit()
  webform_results_download_range_after_build()
  theme_webform_results_download_range()
  theme_webform_results_download_select_format()
  webform_results_export()
  webform_results_download()
  webform_results_analysis()
  theme_webform_results_analysis()
  webform_download_sids()
  webform_download_last_download_info()

Functions
Functions that are not part of a class:

webform_results_submissions($node, $user_filter, $pager_count)   X-Ref
Retrieve lists of submissions for a given webform.


theme_webform_results_per_page($total_count, $pager_count)   X-Ref
Theme the list of links for selecting the number of results per page.

param: $total_count
param: $pager_count

theme_webform_results_submissions_header($node)   X-Ref
Theme the header of the submissions table.

This is done in it's own function so that webform can retrieve the header and
use it for sorting the results.

template_preprocess_webform_results_submissions(&$vars)   X-Ref
Preprocess function for webform-results-submissions.tpl.php


webform_results_table($node, $pager_count = 0)   X-Ref
Create a table containing all submitted values for a webform node.


theme_webform_results_table_header($node)   X-Ref
No description

theme_webform_results_table($node, $components, $submissions, $total_count, $pager_count)   X-Ref
Theme the results table displaying all the submissions for a particular node.

param: $node
param: $components
param: $submissions
param: $total_count
param: $pager_count

webform_results_clear($nid)   X-Ref
Delete all submissions for a node.

param: $nid

webform_results_clear_form($form_state, $node)   X-Ref
Confirmation form to delete all submissions for a node.

param: $nid

webform_results_clear_form_submit($form, &$form_state)   X-Ref
No description

webform_results_download_form(&$form_state, $node)   X-Ref
Form to configure the download of CSV files.


webform_results_download_range_validate($element, $form_state)   X-Ref
FormAPI element validate function for the range fieldset.


webform_results_download_form_submit(&$form, &$form_state)   X-Ref
Validate handler for webform_results_download_form().


webform_results_download_range_after_build($element, &$form_state)   X-Ref
FormAPI after build function for the download range fieldset.


theme_webform_results_download_range($element)   X-Ref
Theme the output of the export range fieldset.


theme_webform_results_download_select_format($element)   X-Ref
Theme the output of the select list format radio buttons.


webform_results_export($node, $format = 'delimited', $options = array()   X-Ref
Generate a Excel-readable CSV file containing all submissions for a Webform.

The CSV requires that the data be presented in a flat file.  In order
to maximize usability to the Excel community and minimize subsequent
stats or spreadsheet programming this program extracts data from the
various records for a given session and presents them as a single file
where each row represents a single record.
The structure of the file is:
Heading Line 1: Gives group overviews padded by empty cells to the
next group.  A group may be a question and corresponds
to a component in the webform philosophy. Each group
overview will have a fixed number of columns beneath it.
Heading line 2: gives column headings
Data line 1 .....
Data line 2 .....

An example of this format is given below.  Note the columns have had spaces
added so the columns line up.  This is not the case with actual file where
a column may be null.  Note also, that multiple choice questions as produced
by checkboxes or radio buttons have been presented as "yes" or "no" and the
actual choice text is retained only in the header line 2.
Data from text boxes and input fields are written out in the body of the table.

Submission Details,    ,   ,      ,Question 1,        ,        ,..,        ,Question 2,        ,        ,..,        ,Question n
timestamp         ,time,SID,userid,Choice 1  ,Choice 2,Choice 3,..,Choice n,Choice 1  ,Choice 2,Choice 3,..,Choice n,Comment
21 Feb 2005       ,1835,23 ,34    ,X         ,        ,        ,..,       ,X          ,X       ,X       ,..,X       ,My comment
23 Feb 2005       ,1125,24 ,89    ,X         ,X       ,        ,..,       ,X          ,X       ,X       ,..,X       ,Hello
.................................................................................................................................
27 Feb 2005       ,1035,56 ,212   ,X         ,        ,        ,..,       ,X          ,X       ,X       ,..,X       ,How is this?


webform_results_download($node, $export_info)   X-Ref
Send a generated webform results file to the user's browser.

param: $node
param: $export_info

webform_results_analysis($node, $sids = array()   X-Ref
Provides a simple analysis of all submissions to a webform.

param: $node
param: $sids
param: $analysis_component

theme_webform_results_analysis($node, $data, $sids = array()   X-Ref
Output the content of the Analysis page.


webform_download_sids($nid, $range_options, $uid = NULL)   X-Ref
Given a set of range options, retrieve a set of SIDs for a webform node.


webform_download_last_download_info($nid, $uid = NULL)   X-Ref
Get this user's last download information, including the SID and timestamp.

This function provides an array of information about the last download that
a user had for a particular Webform node. Currently it only returns an array
with two keys:
- sid: The last submission ID that was downloaded.
- requested: The timestamp of the last download request.

param: $nid
param: $uid
return:



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7