dokeos-learnpath-openofficedocument
[ class tree: dokeos-learnpath-openofficedocument ] [ index: dokeos-learnpath-openofficedocument ] [ all elements ]

Class: OpenOfficeTextDocument

Source Location: /main/newscorm/openoffice_text_document.class.php

Class Overview

learnpath
   |
   --OpenofficeDocument
      |
      --OpenOfficeTextDocument

Defines the "OpenofficeDocument" child of class "learnpath"


Variables

Methods


Inherited Variables

Inherited Methods

Class: OpenofficeDocument

OpenofficeDocument::OpenofficeDocument()
Class constructor. Based on the parent constructor.
OpenofficeDocument::add_command_parameters()
OpenofficeDocument::add_docs_to_visio()
OpenofficeDocument::convert_document()
OpenofficeDocument::make_lp()

Class: learnpath

learnpath::learnpath()
Class constructor. Needs a database handler, a course code and a learnpath id from the database.
learnpath::add_item()
Function rewritten based on old_add_item() from Yannick Warnier. Due the fact that users can decide where the item should come, I had to overlook this function and I found it better to rewrite it. Old function is still available. Added also the possibility to add a description.
learnpath::add_lp()
Static admin function allowing addition of a learnpath to a course.
learnpath::append_message()
Appends a message to the message attribute
learnpath::autocomplete_parents()
Autocompletes the parents of an item in case it's been completed or passed
learnpath::autosave()
Autosaves the current results into the database for the whole learnpath
learnpath::build_tree()
This functions builds the LP tree based on data from the database.
learnpath::clear_message()
Clears the message attribute
learnpath::close()
Closes the current resource
learnpath::create_document()
Create a new document //still needs some finetuning
learnpath::create_js()
Creates the javascript needed for filling up the checkboxes without page reload
learnpath::create_path()
Temp function to be moved in main_api or the best place around for this. Creates a file path
learnpath::create_tree_array()
Creates an array with the elements of the learning path tree in it
learnpath::delete()
Static admin function allowing removal of a learnpath
learnpath::delete_children_items()
Removes all the children of one item - dangerous!
learnpath::delete_item()
Removes an item from the current learnpath
learnpath::display_document()
Displays a document by id
learnpath::display_document_form()
Enter description here...
learnpath::display_edit_item()
Shows the needed forms for editing a specific item
learnpath::display_forum_form()
Enter description here...
learnpath::display_hotpotatoes_form()
Addition of Hotpotatoes tests
learnpath::display_item()
Displays the selected item, with a panel for manipulating the item
learnpath::display_item_form()
Enter description here...
learnpath::display_item_prerequisites_form()
Enter description here...
learnpath::display_item_small_form()
Displays a basic form on the overview page for changing the item title and the item description.
learnpath::display_link_form()
Enter description here...
learnpath::display_manipulate()
Displays the menu for manipulating a step
learnpath::display_move_item()
Enter description here...
learnpath::display_quiz_form()
Enter description here...
learnpath::display_resources()
Function that displays a list with al the resources that could be added to the learning path
learnpath::display_student_publication_form()
Enter description here...
learnpath::display_thread_form()
learnpath::edit_document()
Enter description here...
learnpath::edit_item()
Updates an item's content in place
learnpath::edit_item_prereq()
Updates an item's prereq in place
learnpath::escape_string()
Escapes a string with the available database escape function
learnpath::export_lp()
Static admin function exporting a learnpath into a zip file
learnpath::first()
Gets the first element URL.
learnpath::get_brother_chapters()
Gets all the chapters belonging to the same parent as the item/chapter given
learnpath::get_brother_items()
Gets all the items belonging to the same parent as the item given
learnpath::get_complete_items_count()
Gets the number of items currently completed
learnpath::get_current_item_id()
Gets the current item ID
learnpath::get_db_progress()
Gets the progress value from the progress field in the database (allows use as abstract method)
learnpath::get_documents()
Creates a list with all the documents in it
learnpath::get_exercises()
Creates a list with all the exercises (quiz) in it
learnpath::get_extension()
Returns the extension of a document
learnpath::get_flat_ordered_items_list()
Gets a flat list of item IDs ordered for display (level by level ordered by order_display)
learnpath::get_forums()
learnpath::get_html_toc()
Uses the table generated by get_toc() and returns an HTML-formatted string ready to display
learnpath::get_id()
Gets the learnpath database ID
learnpath::get_interactions_count_from_db()
Return the number of interactions for the given learnpath Item View ID.
learnpath::get_items_status_list()
Gets the status list for all LP's items
learnpath::get_iv_interactions_array()
Return the interactions as an array for the given lp_iv_id.
learnpath::get_iv_objectives_array()
Return the objectives as an array for the given lp_iv_id.
learnpath::get_js_info()
Gets the information about an item in a format usable as JavaScript to update
learnpath::get_js_lib()
Gets the js library from the database
learnpath::get_last()
Gets the last element URL.
learnpath::get_link()
Gets a link to the resource from the present location, depending on item ID.
learnpath::get_links()
Creates a list with all the links in it
learnpath::get_maker()
Gets the learnpath maker name - generally the editor's name
learnpath::get_message()
Gets the user-friendly message stored in $this->message
learnpath::get_name()
Gets the learnpath name/title
learnpath::get_navigation_bar()
Gets the navigation bar for the learnpath display screen
learnpath::get_next_index()
Gets the next resource in queue (url).
learnpath::get_next_item_id()
Gets item_id for the next element
learnpath::get_objectives_count_from_db()
Return the number of objectives for the given learnpath Item View ID.
learnpath::get_package_type()
Returns the package type ('scorm','aicc','scorm2004','dokeos','ppt'...)
learnpath::get_previous_index()
Gets the previous resource in queue (url). Also initialises time values for this viewing
learnpath::get_previous_item_id()
Gets item_id for the next element
learnpath::get_progress()
Gets the progress value from the progress_db attribute
learnpath::get_progress_bar()
Gets a progress bar for the learnpath by counting the number of items in it and the number of items completed so far.
learnpath::get_progress_bar_mode()
Gets the progress bar mode
learnpath::get_progress_bar_text()
Gets the progress bar info to display inside the progress bar. Also used by scorm_api.php
learnpath::get_proximity()
Gets the learnpath proximity (remote or local)
learnpath::get_scorm_prereq_string()
Generate a new prerequisites string for a given item. If this item was a sco and its prerequisites were strings (instead of IDs), then transform those strings into IDs, knowing that SCORM IDs are kept in the "ref" field of the lp_item table.
learnpath::get_scorm_xml_node()
Returns the XML DOM document's node
learnpath::get_stats()
Returns a usable array of stats related to the current learnpath and user
learnpath::get_stats_course()
Static method. Can be re-implemented by children. Gives an array of statistics for
learnpath::get_stats_lp()
Static method. Can be re-implemented by children. Gives an array of statistics for
learnpath::get_stats_lp_user()
Static method. Can be re-implemented by children. Gives an array of statistics for the given course, learnpath and user.
learnpath::get_stats_user()
Static method. Can be re-implemented by children. Gives an array of statistics for
learnpath::get_student_publications()
Creates a list with all the student publications in it
learnpath::get_theme()
Gets the learnpath theme (remote or local)
learnpath::get_toc()
Generate and return the table of contents for this learnpath. The (flat) table returned can be
learnpath::get_total_items_count()
Gets the total number of items available for viewing in this SCORM
learnpath::get_total_items_count_without_chapters()
Gets the total number of items available for viewing in this SCORM but without chapters
learnpath::get_type()
Gets the learning path type
learnpath::get_type_static()
Gets the learning path type as static method
learnpath::get_update_queue()
Gets the update queue
learnpath::get_user_id()
Gets the user ID
learnpath::get_view()
Gets the latest usable view or generate a new one
learnpath::get_view_id()
Gets the current view id
learnpath::log()
Logs a message into a file
learnpath::move_down()
Move a learnpath down (display_order)
learnpath::move_item()
Moves an item up and down at its level
learnpath::move_up()
Move a learnpath up (display_order)
learnpath::next()
Updates learnpath attributes to point to the next element
learnpath::open()
Open a resource = initialise all local variables relative to this resource. Depending on the child class, this might be redefined to allow several behaviours depending on the document type.
learnpath::overview()
Function that creates a table structure with a learning path his modules, chapters and documents.
learnpath::prerequisites_match()
Check that all prerequisites are fulfilled. Returns true and an empty string on succes, returns false and the prerequisite string on error.
learnpath::previous()
Updates learnpath attributes to point to the previous element
learnpath::restart()
Restart the whole learnpath. Return the URL of the first element.
learnpath::save_current()
Saves the current item
learnpath::save_item()
Saves the given item
learnpath::save_last()
Saves the last item seen's ID only in case
learnpath::scorm_export()
Exports the learning path as a SCORM package. This is the main function that gathers the content, transforms it, writes the imsmanifest.xml file, zips the whole thing and returns the zip.
learnpath::set_current_item()
Sets the current item ID (checks if valid and authorized first)
learnpath::set_encoding()
Sets the encoding
learnpath::set_error_msg()
Sets the object's error message
learnpath::set_jslib()
Sets the JS lib setting in the database directly.
learnpath::set_maker()
Sets the name of the LP maker (publisher) (and save)
learnpath::set_name()
Sets the name of the current learnpath (and save)
learnpath::set_previous_item()
Sets the previous item ID to a given ID. Generally, this should be set to the previous 'current' item
learnpath::set_proximity()
Sets the location/proximity of the LP (local/remote) (and save)
learnpath::set_theme()
Sets the theme of the LP (local/remote) (and save)
learnpath::sort_tree_array()
Sorts a multi dimensional array by parent id and display order
learnpath::start_current_item()
Launches the current item if not 'sco' (starts timer and make sure there is a record ready in the DB)
learnpath::stop_previous_item()
Stops the processing and counters for the old item (as held in $this->last)
learnpath::toggle_publish()
Publishes a learnpath. This basically means show or hide the learnpath
learnpath::toggle_visibility()
Publishes a learnpath. This basically means show or hide the learnpath to normal users.
learnpath::tree_array()
Function that makes a call to the function sort_tree_array and create_tree_array
learnpath::update_default_scorm_commit()
Updates the default behaviour about auto-commiting SCORM updates
learnpath::update_default_view_mode()
Updates the default view mode from fullscreen to embedded and inversely
learnpath::update_display_order()
Updates the order of learning paths (goes through all of them by order and fills the gaps)
learnpath::update_reinit()
Updates the "prevent_reinit" value that enables control on reinitialising items on second view
learnpath::update_scorm_debug()
Updates the "scorm_debug" value that shows or hide the debug window
learnpath::write_resources_tree()

Class Details

[line 15]
Defines the "OpenofficeDocument" child of class "learnpath"



[ Top ]


Class Variables

$split_steps =

[line 18]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


method add_command_parameters [line 225]

string add_command_parameters( )

Returns additional Java command parameters



Tags:

return:  The additional parameters to be used in the Java call


Overrides OpenofficeDocument::add_command_parameters() (parent method not documented)

[ Top ]

method add_docs_to_visio [line 293]

void add_docs_to_visio( )

Add documents to the visioconference (to be implemented)



Overrides OpenofficeDocument::add_docs_to_visio() (parent method not documented)

[ Top ]

method dealPerChapter [line 100]

void dealPerChapter( string $header, string $content)

Manages chapter splitting



Parameters:

string   $header   Chapter header
string   $content   Content

[ Top ]

method dealPerPage [line 184]

void dealPerPage( string $header, string $body)

Manages page splitting



Parameters:

string   $header   Page header
string   $body   Page body

[ Top ]

method format_page_content [line 235]

string format_page_content( string $header, string $content)

Formats a page content by reorganising the HTML code a little



Tags:

return:  Formatted page content


Parameters:

string   $header   Page header
string   $content   Page content

[ Top ]

method make_lp [line 41]

boolean make_lp( [array $files = array()])

Gets html pages and compose them into a learning path



Tags:

return:  False if file does not exit. Nothing otherwise.


Overrides OpenofficeDocument::make_lp() (parent method not documented)

Parameters:

array   $files   The files that will compose the generated learning path. Unused so far.

[ Top ]

method OpenofficeTextDocument [line 28]

void OpenofficeTextDocument( [boolean $split_steps = false], [string $course_code = null], [integer $resource_id = null], [integer $user_id = null])

Class constructor. Calls the parent class and initialises the local attribute split_steps



Parameters:

boolean   $split_steps   Whether to split steps (true) or make one large page (false)
string   $course_code   Course code
integer   $resource_id   Resource ID
integer   $user_id   Creator user id

[ Top ]


Documentation generated on Thu, 12 Jun 2008 14:09:40 -0500 by phpDocumentor 1.4.1