[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/feedback/classes/ -> responses_table.php (summary)

Contains class mod_feedback_responses_table

Copyright: 2016 Marina Glancy
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 428 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

mod_feedback_responses_table:: (18 methods):
  __construct()
  init()
  get_context()
  other_cols()
  col_userpic()
  col_deleteentry()
  get_link_single_entry()
  col_completed_timemodified()
  col_courseid()
  add_all_values_to_output()
  query_db()
  get_total_responses_count()
  define_columns()
  out()
  display()
  get_reponse_navigation_links()
  download()
  download_buttons()


Class: mod_feedback_responses_table  - X-Ref

Class mod_feedback_responses_table

__construct(mod_feedback_structure $feedbackstructure)   X-Ref
Constructor

param: mod_feedback_structure $feedbackstructure

init()   X-Ref
Initialises table


get_context()   X-Ref
Current context

return: context_module

other_cols($column, $row)   X-Ref
Allows to set the display column value for all columns without "col_xxxxx" method.

param: string $column column name
param: stdClass $row current record result of SQL query

col_userpic($row)   X-Ref
Prepares column userpic for display

param: stdClass $row
return: string

col_deleteentry($row)   X-Ref
Prepares column deleteentry for display

param: stdClass $row
return: string

get_link_single_entry($row)   X-Ref
Returns a link for viewing a single response

param: stdClass $row
return: \moodle_url

col_completed_timemodified($student)   X-Ref
Prepares column completed_timemodified for display

param: stdClass $student
return: string

col_courseid($row)   X-Ref
Prepares column courseid for display

param: array $row
return: string

add_all_values_to_output()   X-Ref
Adds common values to the table that do not change the number or order of entries and
are only needed when outputting or downloading data.


query_db($pagesize, $useinitialsbar=true)   X-Ref
Query the db. Store results in the table object for use by build_table.

param: int $pagesize size of page for paginated displayed table.
param: bool $useinitialsbar do you want to use the initials bar. Bar

get_total_responses_count()   X-Ref
Returns total number of reponses (without any filters applied)

return: int

define_columns($columns)   X-Ref
Defines columns

param: array $columns an array of identifying names for columns. If

out($pagesize, $useinitialsbar, $downloadhelpbutton='')   X-Ref
Convenience method to call a number of methods for you to display the
table.

param: int $pagesize
param: bool $useinitialsbar
param: string $downloadhelpbutton

display()   X-Ref
Displays the table


get_reponse_navigation_links($record)   X-Ref
Returns links to previous/next responses in the list

param: stdClass $record
return: array array of three elements [$prevresponseurl, $returnurl, $nextresponseurl]

download()   X-Ref
Download the data.


download_buttons()   X-Ref
Returns html code for displaying "Download" button if applicable.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1