Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/admin/qtypes.php File Reference

Go to the source code of this file.

Namespaces

namespace  moodlecore

Functions

 question_types_enable_disable_icons ($qtypename, $createable)
 question_type_icon_html ($action, $qtypename, $icon, $alt, $tip)

Variables

 $systemcontext = get_context_instance(CONTEXT_SYSTEM)
 $canviewreports = has_capability('report/questioninstances:view', $systemcontext)
 $thispageurl = new moodle_url('/admin/qtypes.php')
 $qtypes = question_bank::get_all_qtypes()
 $pluginmanager = plugin_manager::instance()
 $counts
 $needed = array()
foreach($qtypes as $qtypename=>
$qtype) 
$needed ['missingtype'] = true
foreach($counts as $qtypename=>
$count) 
$config = get_config('question')
 $sortedqtypes = array()
if(($disable=optional_param('disable',
'', PARAM_PLUGIN))&&confirm_sesskey())
if(($enable=optional_param('enable',
'', PARAM_PLUGIN))&&confirm_sesskey())
if(($up=optional_param('up',
'', PARAM_PLUGIN))&&confirm_sesskey())
if(($down=optional_param('down',
'', PARAM_PLUGIN))&&confirm_sesskey()) 
if (($delete=optional_param('delete', '', PARAM_PLUGIN))&&confirm_sesskey())
 $table = new flexible_table('qtypeadmintable')
 $createabletypes = question_bank::get_creatable_qtypes()

Function Documentation

question_type_icon_html ( action,
qtypename,
icon,
alt,
tip 
)

Definition at line 305 of file qtypes.php.

Here is the call graph for this function:

Here is the caller graph for this function:

question_types_enable_disable_icons ( qtypename,
createable 
)

Definition at line 295 of file qtypes.php.

Here is the call graph for this function:


Variable Documentation

$canviewreports = has_capability('report/questioninstances:view', $systemcontext)

Definition at line 38 of file qtypes.php.

foreach ($counts as $qtypename=> $count) $config = get_config('question')

Definition at line 70 of file qtypes.php.

$counts
Initial value:
 $DB->get_records_sql("
        SELECT qtype, COUNT(1) as numquestions, SUM(hidden) as numhidden
        FROM {question} GROUP BY qtype", array())

Definition at line 47 of file qtypes.php.

Definition at line 202 of file qtypes.php.

$needed = array()

Definition at line 50 of file qtypes.php.

foreach ($qtypes as $qtypename=> $qtype) $needed['missingtype'] = true

Definition at line 61 of file qtypes.php.

$pluginmanager = plugin_manager::instance()

Definition at line 44 of file qtypes.php.

Definition at line 43 of file qtypes.php.

foreach ($qtypes as $qtypename=> $qtype) $sortedqtypes = array()

Definition at line 71 of file qtypes.php.

Definition at line 36 of file qtypes.php.

$table = new flexible_table('qtypeadmintable')

Definition at line 190 of file qtypes.php.

$thispageurl = new moodle_url('/admin/qtypes.php')

Definition at line 41 of file qtypes.php.

Definition at line 126 of file qtypes.php.

 All Data Structures Namespaces Files Functions Variables Enumerations