1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CAllTestAttempt
Граф наследования:CAllTestAttempt:
CTestAttempt

Открытые члены

 CheckFields (&$arFields, $ID=false, $bCheckRights=true)
 Add ($arFields)
 Update ($ID, $arFields, $arParams=array())
 AttemptFinished ($ATTEMPT_ID)

Открытые статические члены

static Delete ($ID)
static GetFilter ($arFilter)
static GetByID ($ID)
static GetCount ($TEST_ID, $STUDENT_ID)
static IsTestCompleted ($ATTEMPT_ID, $PERCENT)
static OnAttemptChange ($ATTEMPT_ID, $bCOMPLETED=false)
static RecountQuestions ($ATTEMPT_ID)
static IsTestFailed ($ATTEMPT_ID, $PERCENT)
static GetList ($arOrder=array(), $arFilter=array(), $arSelect=array(), $arNavParams=array())
static CreateAttemptQuestions ($ATTEMPT_ID)

Подробное описание

См. определение в файле attempt.php строка 8

Методы

◆ Add()

Add ( $arFields)

См. определение в файле attempt.php строка 79

◆ AttemptFinished()

AttemptFinished ( $ATTEMPT_ID)

См. определение в файле attempt.php строка 380

◆ CheckFields()

CheckFields ( & $arFields,
$ID = false,
$bCheckRights = true )

См. определение в файле attempt.php строка 10

◆ CreateAttemptQuestions()

CreateAttemptQuestions ( $ATTEMPT_ID)
static

QUESTIONS_FROM values: 'L' - X questions from every lesson in course 'C' - X questions from every lesson from every chapter in the course In this case questions taken from immediate lessons of all chapters (X per chapter) in the course. In new data model it means, get X questions from every lesson in the course, except 1) immediate lessons-childs of the course and 2) lessons, contains other lessons (because, in old data model chapters doesn't contains questions)

'H' - all questions from the selected chapter (recursive) in the course This case must be ignored, because converter to new data model updates 'H' to 'R', but in case when chapter is not exists updates didn't become. So QUESTIONS_FROM stayed in 'H' value. And it means, that there is no chapter exists with QUESTIONS_FROM_ID, so we can't do work. And we should just ignore, for backward compatibility (so, don't throw an error). 'S' - all questions from the selected lesson (unilesson_id in QUESTIONS_FROM_ID) 'A' - all questions of the course (nothing interesting in QUESTIONS_FROM_ID)

new values: 'R' - all questions from the tree with root at selected lesson (include questions of selected lesson) in the course (unilesson_id in QUESTIONS_FROM_ID)

'H' - all questions from the selected chapter (recursive) in the course This case must be ignored, because converter to new data model updates 'H' to 'R', but in case when chapter is not exists updates didn't become. So QUESTIONS_FROM stayed in 'H' value. And it means, that there is no chapter exists with QUESTIONS_FROM_ID, so we can't do work. And we should just ignore, for backward compatibility (so, don't throw an error).

См. определение в файле attempt.php строка 664

◆ Delete()

Delete ( $ID)
static

См. определение в файле attempt.php строка 140

◆ GetByID()

GetByID ( $ID)
static

См. определение в файле attempt.php строка 226

◆ GetCount()

GetCount ( $TEST_ID,
$STUDENT_ID )
static

См. определение в файле attempt.php строка 235

◆ GetFilter()

GetFilter ( $arFilter)
static

См. определение в файле attempt.php строка 163

◆ GetList()

GetList ( $arOrder = array(),
$arFilter = array(),
$arSelect = array(),
$arNavParams = array() )
static

См. определение в файле attempt.php строка 501

◆ IsTestCompleted()

IsTestCompleted ( $ATTEMPT_ID,
$PERCENT )
static

См. определение в файле attempt.php строка 251

◆ IsTestFailed()

IsTestFailed ( $ATTEMPT_ID,
$PERCENT )
static

См. определение в файле attempt.php строка 443

◆ OnAttemptChange()

OnAttemptChange ( $ATTEMPT_ID,
$bCOMPLETED = false )
static

См. определение в файле attempt.php строка 298

◆ RecountQuestions()

RecountQuestions ( $ATTEMPT_ID)
static

См. определение в файле attempt.php строка 418

◆ Update()

Update ( $ID,
$arFields,
$arParams = array() )

См. определение в файле attempt.php строка 107


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/learning/classes/general/attempt.php