|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
A class defining mark schemas for assessment test objects. More...
Collaboration diagram for ASS_MarkSchema:Public Member Functions | |
| __construct (protected ilDBInterface $db, protected ilLanguage $lng, protected int $current_user_id) | |
| 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="", float $percentage=0, int $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) | |
| logAction ($test_id, string $logtext="") | |
| Logs an action into the Test&Assessment log. More... | |
Data Fields | |
| array | $mark_steps |
A class defining mark schemas for assessment test objects.
Definition at line 33 of file class.assMarkSchema.php.
| ASS_MarkSchema::__construct | ( | protected ilDBInterface | $db, |
| protected ilLanguage | $lng, | ||
| protected int | $current_user_id | ||
| ) |
Definition at line 37 of file class.assMarkSchema.php.
| ASS_MarkSchema::addMarkStep | ( | string | $txt_short = "", |
| string | $txt_official = "", |
||
| float | $percentage = 0, |
||
| int | $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 86 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 305 of file class.assMarkSchema.php.
| 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 60 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 247 of file class.assMarkSchema.php.
| 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 266 of file class.assMarkSchema.php.
References ILIAS\LTI\ToolProvider\$key.
| ASS_MarkSchema::flush | ( | ) |
Definition at line 213 of file class.assMarkSchema.php.
Referenced by createSimpleSchema().
Here is the caller graph for this function:| ASS_MarkSchema::getMarkSteps | ( | ) |
| ASS_MarkSchema::getMatchingMark | ( | $percentage | ) |
Returns the matching mark for a given percentage.
| double | $percentage | A percentage value between 0 and 100. |
Definition at line 285 of file class.assMarkSchema.php.
| ASS_MarkSchema::loadFromDb | ( | int | $test_id | ) |
PhpAssignmentInConditionInspection
Definition at line 190 of file class.assMarkSchema.php.
References $data, and addMarkStep().
Here is the call graph for this function:| ASS_MarkSchema::logAction | ( | $test_id, | |
| string | $logtext = "" |
||
| ) |
Logs an action into the Test&Assessment log.
Definition at line 347 of file class.assMarkSchema.php.
References ilObjAssessmentFolder\_addLog(), and ilObjTest\_getObjectIDFromTestID().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ASS_MarkSchema::saveToDb | ( | int | $test_id | ) |
PhpAssignmentInConditionInspection
PhpAssignmentInConditionInspection
Definition at line 92 of file class.assMarkSchema.php.
References ILIAS\LTI\ToolProvider\$key, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ILIAS\Repository\lng(), and logAction().
Referenced by ilObjTest\cloneObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ASS_MarkSchema::setMarkSteps | ( | array | $mark_steps | ) |
| ASS_Mark[] | $mark_steps |
Definition at line 339 of file class.assMarkSchema.php.
References $mark_steps.
| ASS_MarkSchema::sort | ( | ) |
Sorts the mark schema using the minimum level values.
Definition at line 223 of file class.assMarkSchema.php.
References Vendor\Package\$a, Vendor\Package\$b, and $res.
| array ASS_MarkSchema::$mark_steps |
Definition at line 35 of file class.assMarkSchema.php.
Referenced by getMarkSteps(), and setMarkSteps().