@@ 9295-9307 (lines=13) @@ | ||
9292 | $my_item->appendChild($my_masteryscore); |
|
9293 | ||
9294 | // Attach this item to the organization element or its parent if there is one. |
|
9295 | if (!empty($item->parent) && $item->parent != 0) { |
|
9296 | $children = $organization->childNodes; |
|
9297 | for ($i = 0; $i < $children->length; $i++) { |
|
9298 | $item_temp = $children->item($i); |
|
9299 | if ($item_temp -> nodeName == 'item') { |
|
9300 | if ($item_temp->getAttribute('identifier') == 'ITEM_'.$item->parent) { |
|
9301 | $item_temp -> appendChild($my_item); |
|
9302 | } |
|
9303 | } |
|
9304 | } |
|
9305 | } else { |
|
9306 | $organization->appendChild($my_item); |
|
9307 | } |
|
9308 | ||
9309 | $my_file_path = 'link_'.$item->get_id().'.html'; |
|
9310 | $sql = 'SELECT url, title FROM '.Database :: get_course_table(TABLE_LINK).' |
|
@@ 9359-9371 (lines=13) @@ | ||
9356 | $my_item->appendChild($my_masteryscore); |
|
9357 | ||
9358 | // Attach this item to the organization element or hits parent if there is one. |
|
9359 | if (!empty($item->parent) && $item->parent != 0) { |
|
9360 | $children = $organization->childNodes; |
|
9361 | for ($i = 0; $i < $children->length; $i++) { |
|
9362 | $item_temp = $children->item($i); |
|
9363 | if ($item_temp -> nodeName == 'item') { |
|
9364 | if ($item_temp->getAttribute('identifier') == 'ITEM_'.$item->parent) { |
|
9365 | $item_temp -> appendChild($my_item); |
|
9366 | } |
|
9367 | } |
|
9368 | } |
|
9369 | } else { |
|
9370 | $organization->appendChild($my_item); |
|
9371 | } |
|
9372 | ||
9373 | // Get the path of the file(s) from the course directory root |
|
9374 | //$my_file_path = $item->get_file_path('scorm/'.$this->path.'/'); |