Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/feedback/analysis_to_excel.php File Reference

Go to the source code of this file.

Namespaces

namespace  feedback

Functions

 feedback_excelprint_detailed_head (&$worksheet, $xls_formats, $items, $row_offset)
 feedback_excelprint_detailed_items (&$worksheet, $xls_formats, $completed, $items, $row_offset)

Variables

 $id = required_param('id', PARAM_INT)
 $coursefilter = optional_param('coursefilter', '0', PARAM_INT)
 $url = new moodle_url('/mod/feedback/analysis_to_excel.php', array('id'=>$id))
 $formdata = data_submitted()
 $fstring = new stdClass()
$fstring bold = get_string('bold', 'feedback')
$fstring page = get_string('page', 'feedback')
$fstring of = get_string('of', 'feedback')
$fstring modulenameplural = get_string('modulenameplural', 'feedback')
$fstring questions = get_string('questions', 'feedback')
$fstring itemlabel = get_string('item_label', 'feedback')
$fstring question = get_string('question', 'feedback')
$fstring responses = get_string('responses', 'feedback')
$fstring idnumber = get_string('idnumber')
$fstring username = get_string('username')
$fstring fullname = get_string('fullnameuser')
$fstring courseid = get_string('courseid', 'feedback')
$fstring course = get_string('course')
$fstring anonymous_user = get_string('anonymous_user', 'feedback')
 $params = array('feedback' => $feedback->id, 'hasvalue' => 1)
if(!$items=$DB->get_records('feedback_item',
$params, 'position')) 
$filename = "feedback.xls"
 $mygroupid = groups_get_activity_group($cm)
 $workbook = new MoodleExcelWorkbook('-')
 $xls_formats = new stdClass()
$xls_formats head1
$xls_formats head2
$xls_formats default
$xls_formats value_bold
$xls_formats procent
 $sheetname = clean_param($feedback->name, PARAM_ALPHANUM)
 $worksheet1 = & $workbook->add_worksheet(substr($sheetname, 0, 31))
 $worksheet2 = & $workbook->add_worksheet('detailed')
 $row_offset1 = 0
 $completedscount = feedback_get_completeds_group_count($feedback, $mygroupid, $coursefilter)
if(empty($items)) foreach($items
as $item
$completeds = feedback_get_completeds_group($feedback, $mygroupid, $coursefilter)
 $row_offset2 = 0
 exit

Function Documentation

feedback_excelprint_detailed_head ( &$  worksheet,
xls_formats,
items,
row_offset 
)

Definition at line 216 of file analysis_to_excel.php.

feedback_excelprint_detailed_items ( &$  worksheet,
xls_formats,
completed,
items,
row_offset 
)

Definition at line 248 of file analysis_to_excel.php.

Here is the call graph for this function:


Variable Documentation

if (empty($items)) foreach ($items as $item) $completeds = feedback_get_completeds_group($feedback, $mygroupid, $coursefilter)

Definition at line 187 of file analysis_to_excel.php.

$completedscount = feedback_get_completeds_group_count($feedback, $mygroupid, $coursefilter)

Definition at line 144 of file analysis_to_excel.php.

$coursefilter = optional_param('coursefilter', '0', PARAM_INT)

Definition at line 32 of file analysis_to_excel.php.

if (!$items=$DB->get_records('feedback_item', $params, 'position')) $filename = "feedback.xls"

Definition at line 91 of file analysis_to_excel.php.

$formdata = data_submitted()

Definition at line 40 of file analysis_to_excel.php.

$fstring = new stdClass()

Definition at line 65 of file analysis_to_excel.php.

Definition at line 31 of file analysis_to_excel.php.

$params = array('feedback' => $feedback->id, 'hasvalue' => 1)

Definition at line 83 of file analysis_to_excel.php.

$row_offset1 = 0

Definition at line 137 of file analysis_to_excel.php.

$row_offset2 = 0

Definition at line 192 of file analysis_to_excel.php.

$sheetname = clean_param($feedback->name, PARAM_ALPHANUM)

Definition at line 126 of file analysis_to_excel.php.

$url = new moodle_url('/mod/feedback/analysis_to_excel.php', array('id'=>$id))

Definition at line 34 of file analysis_to_excel.php.

$workbook = new MoodleExcelWorkbook('-')

Definition at line 96 of file analysis_to_excel.php.

$worksheet1 = & $workbook->add_worksheet(substr($sheetname, 0, 31))

Definition at line 128 of file analysis_to_excel.php.

$worksheet2 = & $workbook->add_worksheet('detailed')

Definition at line 129 of file analysis_to_excel.php.

$xls_formats = new stdClass()

Definition at line 100 of file analysis_to_excel.php.

$fstring anonymous_user = get_string('anonymous_user', 'feedback')

Definition at line 79 of file analysis_to_excel.php.

$fstring bold = get_string('bold', 'feedback')

Definition at line 66 of file analysis_to_excel.php.

$fstring course = get_string('course')

Definition at line 78 of file analysis_to_excel.php.

$fstring courseid = get_string('courseid', 'feedback')

Definition at line 77 of file analysis_to_excel.php.

array Supported namespaces Zend and ZendX by default
Initial value:
 $workbook->add_format(array(
                        'align'=>'left',
                        'v_align'=>'top'))

Definition at line 110 of file analysis_to_excel.php.

Definition at line 209 of file analysis_to_excel.php.

$fstring fullname = get_string('fullnameuser')

Definition at line 76 of file analysis_to_excel.php.

$xls_formats head1
Initial value:
 $workbook->add_format(array(
                        'bold'=>1,
                        'size'=>12))

Definition at line 101 of file analysis_to_excel.php.

$xls_formats head2
Initial value:
 $workbook->add_format(array(
                        'align'=>'left',
                        'bold'=>1,
                        'bottum'=>2))

Definition at line 105 of file analysis_to_excel.php.

$fstring idnumber = get_string('idnumber')

Definition at line 74 of file analysis_to_excel.php.

$fstring itemlabel = get_string('item_label', 'feedback')

Definition at line 71 of file analysis_to_excel.php.

$fstring modulenameplural = get_string('modulenameplural', 'feedback')

Definition at line 69 of file analysis_to_excel.php.

array This is a multi dimensional array that stores the results of = get_string('of', 'feedback')

the analysis.

The description of question_type::get_possible_responses() should help understand this description.

$this->responses[$subpartid][$responseclassid][$response] is an object with two fields, ->count and ->fraction.

Definition at line 68 of file analysis_to_excel.php.

moodle_url Object representing url for this page = get_string('page', 'feedback')

Abstract class representation of a page associated with a lesson.

This class should MUST be extended by all specialised page types defined in mod/lesson/pagetypes/. There are a handful of abstract methods that need to be defined as well as severl methods that can optionally be defined in order to make the page type operate in the desired way

Database properties

Definition at line 67 of file analysis_to_excel.php.

$xls_formats procent
Initial value:
 $workbook->add_format(array(
                        'align'=>'left',
                        'bold'=>1,
                        'v_align'=>'top',
                        'num_format'=>'#,##0.00%'))

Definition at line 119 of file analysis_to_excel.php.

$fstring question = get_string('question', 'feedback')

Definition at line 72 of file analysis_to_excel.php.

$fstring questions = get_string('questions', 'feedback')

Definition at line 70 of file analysis_to_excel.php.

$fstring responses = get_string('responses', 'feedback')

Definition at line 73 of file analysis_to_excel.php.

string the username = get_string('username')

The username to use in requests

Definition at line 75 of file analysis_to_excel.php.

$xls_formats value_bold
Initial value:
 $workbook->add_format(array(
                        'align'=>'left',
                        'bold'=>1,
                        'v_align'=>'top'))

Definition at line 114 of file analysis_to_excel.php.

 All Data Structures Namespaces Files Functions Variables Enumerations