|
@@ 9392-9404 (lines=13) @@
|
| 9389 |
|
$my_item->appendChild($my_masteryscore); |
| 9390 |
|
|
| 9391 |
|
// Attach this item to the organization element or its parent if there is one. |
| 9392 |
|
if (!empty($item->parent) && $item->parent != 0) { |
| 9393 |
|
$children = $organization->childNodes; |
| 9394 |
|
for ($i = 0; $i < $children->length; $i++) { |
| 9395 |
|
$item_temp = $children->item($i); |
| 9396 |
|
if ($item_temp -> nodeName == 'item') { |
| 9397 |
|
if ($item_temp->getAttribute('identifier') == 'ITEM_'.$item->parent) { |
| 9398 |
|
$item_temp -> appendChild($my_item); |
| 9399 |
|
} |
| 9400 |
|
} |
| 9401 |
|
} |
| 9402 |
|
} else { |
| 9403 |
|
$organization->appendChild($my_item); |
| 9404 |
|
} |
| 9405 |
|
|
| 9406 |
|
$my_file_path = 'link_'.$item->get_id().'.html'; |
| 9407 |
|
$sql = 'SELECT url, title FROM '.Database :: get_course_table(TABLE_LINK).' |
|
@@ 9456-9468 (lines=13) @@
|
| 9453 |
|
$my_item->appendChild($my_masteryscore); |
| 9454 |
|
|
| 9455 |
|
// Attach this item to the organization element or hits parent if there is one. |
| 9456 |
|
if (!empty($item->parent) && $item->parent != 0) { |
| 9457 |
|
$children = $organization->childNodes; |
| 9458 |
|
for ($i = 0; $i < $children->length; $i++) { |
| 9459 |
|
$item_temp = $children->item($i); |
| 9460 |
|
if ($item_temp -> nodeName == 'item') { |
| 9461 |
|
if ($item_temp->getAttribute('identifier') == 'ITEM_'.$item->parent) { |
| 9462 |
|
$item_temp -> appendChild($my_item); |
| 9463 |
|
} |
| 9464 |
|
} |
| 9465 |
|
} |
| 9466 |
|
} else { |
| 9467 |
|
$organization->appendChild($my_item); |
| 9468 |
|
} |
| 9469 |
|
|
| 9470 |
|
// Get the path of the file(s) from the course directory root |
| 9471 |
|
//$my_file_path = $item->get_file_path('scorm/'.$this->path.'/'); |