CDBResult
CTestResult::GetList(
array arOrder = Array("ID"=>"DESC"),
array arFilter = Array()
);
The GetList method returns a list of examination schema questions filtered by arFilter and sorted in the arOrder order.
| Parameter | Description |
|---|---|
| arOrder |
An array in the format array("filter field"=>"sort
order" [, ...]). The sorting field can have the following values:
|
| arFilter |
An array in the format array("filtered
field"=>"filter value" [, ...]). The following
values are possible:
Optional. By default, records are not filtered. |
The method returns an instance of the CDBResult object.
<?
if (CModule::IncludeModule("learning"))
{
$ATTEMPT_ID = 590;
$res = CTestResult::GetList(
Array("ID" => "ASC"),
Array("ANSWERED" => "N", "ATTEMPT_ID" => $ATTEMPT_ID)
);
while ($arQuestionPlan = $res->GetNext())
{
echo "Question ID: ".$arQuestionPlan["QUESTION_ID"]."; Correct answer: ".$arQuestionPlan["CORRECT"]."; Question name:".$arQuestionPlan["QUESTION_NAME"]."<br>";
}
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |