@@ 9303-9315 (lines=13) @@ | ||
9300 | $my_item->appendChild($my_masteryscore); |
|
9301 | ||
9302 | // Attach this item to the organization element or its parent if there is one. |
|
9303 | if (!empty($item->parent) && $item->parent != 0) { |
|
9304 | $children = $organization->childNodes; |
|
9305 | for ($i = 0; $i < $children->length; $i++) { |
|
9306 | $item_temp = $children->item($i); |
|
9307 | if ($item_temp -> nodeName == 'item') { |
|
9308 | if ($item_temp->getAttribute('identifier') == 'ITEM_'.$item->parent) { |
|
9309 | $item_temp -> appendChild($my_item); |
|
9310 | } |
|
9311 | } |
|
9312 | } |
|
9313 | } else { |
|
9314 | $organization->appendChild($my_item); |
|
9315 | } |
|
9316 | ||
9317 | $my_file_path = 'link_'.$item->get_id().'.html'; |
|
9318 | $sql = 'SELECT url, title FROM '.Database :: get_course_table(TABLE_LINK).' |
|
@@ 9367-9379 (lines=13) @@ | ||
9364 | $my_item->appendChild($my_masteryscore); |
|
9365 | ||
9366 | // Attach this item to the organization element or hits parent if there is one. |
|
9367 | if (!empty($item->parent) && $item->parent != 0) { |
|
9368 | $children = $organization->childNodes; |
|
9369 | for ($i = 0; $i < $children->length; $i++) { |
|
9370 | $item_temp = $children->item($i); |
|
9371 | if ($item_temp -> nodeName == 'item') { |
|
9372 | if ($item_temp->getAttribute('identifier') == 'ITEM_'.$item->parent) { |
|
9373 | $item_temp -> appendChild($my_item); |
|
9374 | } |
|
9375 | } |
|
9376 | } |
|
9377 | } else { |
|
9378 | $organization->appendChild($my_item); |
|
9379 | } |
|
9380 | ||
9381 | // Get the path of the file(s) from the course directory root |
|
9382 | //$my_file_path = $item->get_file_path('scorm/'.$this->path.'/'); |