芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/question/classes/statistics/questions/calculated_for_subquestion.php
. /** * Class for storing calculated sub question statistics and intermediate calculation values. * * @package core_question * @copyright 2013 The Open University * @author James Pratt me@jamiep.org * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_question\statistics\questions; defined('MOODLE_INTERNAL') || die(); /** * A class to store calculated stats for a sub question. * * @package core_question * @copyright 2013 The Open University * @author James Pratt me@jamiep.org * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class calculated_for_subquestion extends calculated { public $subquestion = true; /** * @var array What slots is this sub question used in? */ public $usedin = array(); /** * @var bool Have the slots this sub question has been used in got different grades? */ public $differentweights = false; public $negcovar = 0; /** * @var int only set immediately before display in the table. The order of display in the table. */ public $subqdisplayorder; /** * Constructor. * * @param object|null $step the step data for the step that this sub-question was first encountered in. * @param int|null $variant the variant no */ public function __construct($step = null, $variant = null) { if ($step !== null) { $this->questionid = $step->questionid; $this->maxmark = $step->maxmark; } $this->variant = $variant; } }