|
@@ 9287-9299 (lines=13) @@
|
| 9284 |
|
$my_item->appendChild($my_masteryscore); |
| 9285 |
|
|
| 9286 |
|
// Attach this item to the organization element or its parent if there is one. |
| 9287 |
|
if (!empty($item->parent) && $item->parent != 0) { |
| 9288 |
|
$children = $organization->childNodes; |
| 9289 |
|
for ($i = 0; $i < $children->length; $i++) { |
| 9290 |
|
$item_temp = $children->item($i); |
| 9291 |
|
if ($item_temp -> nodeName == 'item') { |
| 9292 |
|
if ($item_temp->getAttribute('identifier') == 'ITEM_'.$item->parent) { |
| 9293 |
|
$item_temp -> appendChild($my_item); |
| 9294 |
|
} |
| 9295 |
|
} |
| 9296 |
|
} |
| 9297 |
|
} else { |
| 9298 |
|
$organization->appendChild($my_item); |
| 9299 |
|
} |
| 9300 |
|
|
| 9301 |
|
$my_file_path = 'link_'.$item->get_id().'.html'; |
| 9302 |
|
$sql = 'SELECT url, title FROM '.Database :: get_course_table(TABLE_LINK).' |
|
@@ 9351-9363 (lines=13) @@
|
| 9348 |
|
$my_item->appendChild($my_masteryscore); |
| 9349 |
|
|
| 9350 |
|
// Attach this item to the organization element or hits parent if there is one. |
| 9351 |
|
if (!empty($item->parent) && $item->parent != 0) { |
| 9352 |
|
$children = $organization->childNodes; |
| 9353 |
|
for ($i = 0; $i < $children->length; $i++) { |
| 9354 |
|
$item_temp = $children->item($i); |
| 9355 |
|
if ($item_temp -> nodeName == 'item') { |
| 9356 |
|
if ($item_temp->getAttribute('identifier') == 'ITEM_'.$item->parent) { |
| 9357 |
|
$item_temp -> appendChild($my_item); |
| 9358 |
|
} |
| 9359 |
|
} |
| 9360 |
|
} |
| 9361 |
|
} else { |
| 9362 |
|
$organization->appendChild($my_item); |
| 9363 |
|
} |
| 9364 |
|
|
| 9365 |
|
// Get the path of the file(s) from the course directory root |
| 9366 |
|
//$my_file_path = $item->get_file_path('scorm/'.$this->path.'/'); |