|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ASS_MarkSchema:Public Member Functions | |
| __construct () | |
| createSimpleSchema (string $txt_failed_short="failed", string $txt_failed_official="failed", float $percentage_failed=0, int $failed_passed=0, string $txt_passed_short="passed", string $txt_passed_official="passed", float $percentage_passed=50, int $passed_passed=1) | |
| Creates a simple mark schema for two mark steps: failed and passed. More... | |
| addMarkStep (string $txt_short="", string $txt_official="", $percentage=0, $passed=0) | |
| Adds a mark step to the mark schema. More... | |
| saveToDb (int $test_id) | |
| loadFromDb (int $test_id) | |
| flush () | |
| sort () | |
| Sorts the mark schema using the minimum level values. More... | |
| deleteMarkStep ($index=0) | |
| Deletes the mark step with a given index. More... | |
| deleteMarkSteps (array $indexes) | |
| Deletes multiple mark steps using their index positions. More... | |
| getMatchingMark ($percentage) | |
| Returns the matching mark for a given percentage. More... | |
| checkMarks () | |
| Check the marks for consistency. More... | |
| getMarkSteps () | |
| setMarkSteps (array $mark_steps) | |
Static Public Member Functions | |
| static | _getMatchingMark ($test_id, $percentage) |
| Returns the matching mark for a given percentage. More... | |
| static | _getMatchingMarkFromObjId ($a_obj_id, float $percentage) |
| Returns the matching mark for a given percentage. More... | |
Data Fields | |
| array | $mark_steps |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning A class defining mark schemas for assessment test objects
Definition at line 31 of file class.assMarkSchema.php.
| ASS_MarkSchema::__construct | ( | ) |
Definition at line 35 of file class.assMarkSchema.php.
|
static |
Returns the matching mark for a given percentage.
| integer | $test_id | The database id of the test. |
| double | $percentage | A percentage value between 0 and 100. |
@noinspection PhpAssignmentInConditionInspection
Definition at line 312 of file class.assMarkSchema.php.
|
static |
Returns the matching mark for a given percentage.
| integer | $a_obj_id | The database id of the test. |
Definition at line 340 of file class.assMarkSchema.php.
Referenced by ilObjTestAccess\_isPassed(), and ilObjTestAccess\isFailed().
Here is the caller graph for this function:| ASS_MarkSchema::addMarkStep | ( | string | $txt_short = "", |
| string | $txt_official = "", |
||
$percentage = 0, |
|||
$passed = 0 |
|||
| ) |
Adds a mark step to the mark schema.
A new ASS_Mark object will be created and stored in the $mark_steps array.
| string | $txt_short | The short text of the mark. |
| string | $txt_official | The official text of the mark. |
| float | $percentage | The minimum percentage level reaching the mark. |
| integer | $passed | The passed status of the mark (0 = failed, 1 = passed). |
Definition at line 81 of file class.assMarkSchema.php.
Referenced by createSimpleSchema(), and loadFromDb().
Here is the caller graph for this function:| ASS_MarkSchema::checkMarks | ( | ) |
Check the marks for consistency.
Definition at line 394 of file class.assMarkSchema.php.
References $i.
| ASS_MarkSchema::createSimpleSchema | ( | string | $txt_failed_short = "failed", |
| string | $txt_failed_official = "failed", |
||
| float | $percentage_failed = 0, |
||
| int | $failed_passed = 0, |
||
| string | $txt_passed_short = "passed", |
||
| string | $txt_passed_official = "passed", |
||
| float | $percentage_passed = 50, |
||
| int | $passed_passed = 1 |
||
| ) |
Creates a simple mark schema for two mark steps: failed and passed.
| string | $txt_failed_short | The short text of the failed mark. |
| string | $txt_failed_official | The official text of the failed mark. |
| float | int | $percentage_failed | The minimum percentage level reaching the failed mark. |
| integer | $failed_passed | Indicates the passed status of the failed mark (0 = failed, 1 = passed). |
| string | $txt_passed_short | The short text of the passed mark. |
| string | $txt_passed_official | The official text of the passed mark. |
| float | int | $percentage_passed | The minimum percentage level reaching the passed mark. |
| integer | $passed_passed | Indicates the passed status of the passed mark (0 = failed, 1 = passed). |
Definition at line 55 of file class.assMarkSchema.php.
References addMarkStep(), and flush().
Here is the call graph for this function:| ASS_MarkSchema::deleteMarkStep | ( | $index = 0 | ) |
Deletes the mark step with a given index.
| integer | $index | The index of the mark step to delete. |
Definition at line 251 of file class.assMarkSchema.php.
References $index.
| ASS_MarkSchema::deleteMarkSteps | ( | array | $indexes | ) |
Deletes multiple mark steps using their index positions.
| array | $indexes | An array with all the index positions to delete. |
Definition at line 270 of file class.assMarkSchema.php.
References $index, and ILIAS\LTI\ToolProvider\$key.
| ASS_MarkSchema::flush | ( | ) |
Definition at line 217 of file class.assMarkSchema.php.
Referenced by createSimpleSchema().
Here is the caller graph for this function:| ASS_MarkSchema::getMarkSteps | ( | ) |
Definition at line 420 of file class.assMarkSchema.php.
References $mark_steps.
| ASS_MarkSchema::getMatchingMark | ( | $percentage | ) |
Returns the matching mark for a given percentage.
| double | $percentage | A percentage value between 0 and 100. |
Definition at line 289 of file class.assMarkSchema.php.
References $i.
| ASS_MarkSchema::loadFromDb | ( | int | $test_id | ) |
@noinspection PhpAssignmentInConditionInspection
Definition at line 191 of file class.assMarkSchema.php.
References $data, $DIC, $ilDB, and addMarkStep().
Here is the call graph for this function:| ASS_MarkSchema::saveToDb | ( | int | $test_id | ) |
@noinspection PhpAssignmentInConditionInspection
@noinspection PhpAssignmentInConditionInspection
Definition at line 88 of file class.assMarkSchema.php.
References $DIC, $ilDB, ILIAS\LTI\ToolProvider\$key, $lng, ilObjAssessmentFolder\_enabledAssessmentLogging(), and ilObjAssessmentFolder\_getLogLanguage().
Here is the call graph for this function:| ASS_MarkSchema::setMarkSteps | ( | array | $mark_steps | ) |
| ASS_Mark[] | $mark_steps |
Definition at line 428 of file class.assMarkSchema.php.
References $mark_steps.
| ASS_MarkSchema::sort | ( | ) |
Sorts the mark schema using the minimum level values.
Definition at line 227 of file class.assMarkSchema.php.
References Vendor\Package\$a, Vendor\Package\$b, and $res.
| array ASS_MarkSchema::$mark_steps |
Definition at line 33 of file class.assMarkSchema.php.
Referenced by getMarkSteps(), and setMarkSteps().