ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORM2004FinalAsset Class Reference

Final page asset. More...

+ Inheritance diagram for ilSCORM2004FinalAsset:
+ Collaboration diagram for ilSCORM2004FinalAsset:

Public Member Functions

 __construct ($a_slm_object)
 Constructor.
 exportScorm ($a_inst, $a_target_dir, &$expLog)
 Export special item to scorm.
- Public Member Functions inherited from ilSCORM2004Asset
 __construct ($a_slm_object, $a_id=0)
 Constructor.
 delete ($a_delete_meta_data=true)
 Delete a SCO.
 create ($a_upload=false, $a_template=false)
 Create asset.
 copy ($a_target_slm)
 Copy sco.
 exportScorm ($a_inst, $a_target_dir, $ver, &$expLog)
 exportHTML ($a_inst, $a_target_dir, &$expLog, $a_asset_type="sco", $a_one_file="")
 exportHTML4PDF ($a_inst, $a_target_dir, &$expLog)
 exportPDF ($a_inst, $a_target_dir, &$expLog)
 exportPDFPrepareXmlNFiles ($a_inst, $a_target_dir, &$expLog, &$a_xml_writer)
 exportHTMLPageObjects ($a_inst, $a_target_dir, &$expLog, $mode, $a_asset_type="sco", $a_one_file="", $a_sco_tpl=null)
 Export HTML pages of SCO.
 exportXMLPageObjects ($a_target_dir, &$a_xml_writer, $a_inst, &$expLog)
 exportXMLMediaObjects (&$a_xml_writer, $a_inst, $a_target_dir, &$expLog)
 exportFileItems ($a_target_dir, &$expLog)
 export files of file itmes
 exportXMLMetaData (&$a_xml_writer)
 getExportFiles ()
 getGlossaryTermIds ()
 Get glossary term ids in sco.
- Public Member Functions inherited from ilSCORM2004Node
 ilSCORM2004Node ($a_slm_object, $a_id=0)
 setTitle ($a_title)
 Set title.
 getTitle ()
 Get title.
 setDescription ($a_description)
 Set description.
 getDescription ()
 Get description.
 setType ($a_type)
 Set type.
 getType ()
 Get type.
 setSLMId ($a_slm_id)
 Set ID of parent Scorm Learning Module Object.
 getSLMId ()
 Get ID of parent Scorm Learning Module Object.
 setSLMObject ($a_slm_obj)
 Set Scorm Learning Module Object.
 getSLMObject ()
 Get scorm learning module object.
 getContentObject ()
 Get Scorm Learning Module Object.
 setId ($a_id)
 Set Node ID.
 getId ()
 Get Node ID.
 getImportId ()
 Set Import ID.
 setImportId ($a_id)
 Get Import ID.
 read ()
 Read Data of Node.
 MDUpdateListener ($a_element)
 Meta data update listener.
 createMetaData ()
 create meta data entry
 updateMetaData ()
 update meta data entry
 deleteMetaData ()
 delete meta data entry
 setDataRecord ($a_record)
 this method should only be called by class ilSCORM2004NodeFactory
 create ($a_upload=false)
 Create Node.
 update ()
 Update Node.
 delete ()
 Delete Node.
 _getIdForImportId ($a_import_id)
 Get Node ID for import ID (static)
 _exists ($a_id)
 Checks wether a node exists.
 _deleteAllSLMNodes ($a_slm_object)
 Delete all nodes of Scorm Learning Module.
 _lookupSLMID ($a_id)
 Lookup Scorm Learning Module ID for node id.
 clipboardCut ($a_slm_obj_id, $a_ids)
 Cut and copy a set of chapters/pages into the clipboard.
 insertChapterClip ($a_slm_obj, $a_as_sub=false)
 Insert Chapter from clipboard.
 getObjectives ()
 deleteSeqInfo ()
 parentHasSeqTemplate ()
 exportAsScorm12 ()
 exportAsScorm13 ()

Static Public Member Functions

static addFinalPageItemXML ($a_writer, $a_slm_obj)
 Export page objects of entry asset.
static addFinalPageResourceXML ($a_writer, $a_slm_obj)
 Add final page resource XML to writer.
- Static Public Member Functions inherited from ilSCORM2004Asset
static renderNavigation ($a_tpl, $a_spacer_img="", $a_lang="")
 Render navigation.
static renderMetaPage ($a_tpl, $a_sco, $a_asset_type="", $mode="")
 Render meta page (description/objectives at beginning)
static convertLists ($a_text)
 Convert * and # to lists.
- Static Public Member Functions inherited from ilSCORM2004Node
static _lookupTitle ($a_obj_id)
 Lookup Title.
static _lookupType ($a_obj_id)
 Lookup Type.
static _writeTitle ($a_obj_id, $a_title)
 Write Title.
static _writeImportId ($a_id, $a_import_id)
 Write import ID.
static putInTree ($a_obj, $a_parent_id="", $a_target_node_id="")
 put this object into content object tree
static getTree ($a_slm_obj_id)
 Get scorm module editing tree.
static clipboardCopy ($a_slm_obj_id, $a_ids)
 Copy a set of chapters/pages/scos into the clipboard.
static uniqueTypesCheck ($a_items)
 Check for unique types (all pages or all chapters or all scos)
static insertPageClip ($a_slm_obj)
 Insert pages from clipboard.
static insertAssetClip ($a_slm_obj, $a_type="ass")
 Insert assets from clipboard.
static insertScoClip ($a_slm_obj)
 Insert scos from clipboard.
static pasteTree ($a_target_slm, $a_item_id, $a_parent_id, $a_target, $a_insert_time, &$a_copied_nodes, $a_as_copy=false)
 Paste item (tree) from clipboard to current scorm learning module.

Additional Inherited Members

- Data Fields inherited from ilSCORM2004Asset
 $q_media = null

Detailed Description

Final page asset.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 13 of file class.ilSCORM2004FinalAsset.php.

Constructor & Destructor Documentation

ilSCORM2004FinalAsset::__construct (   $a_slm_object)

Constructor.

Parameters
objectSCORM LM object

Definition at line 20 of file class.ilSCORM2004FinalAsset.php.

References ilSCORM2004Node\ilSCORM2004Node(), and ilSCORM2004Node\setType().

{
parent::ilSCORM2004Node($a_slm_object);
$this->setType("ass");
}

+ Here is the call graph for this function:

Member Function Documentation

static ilSCORM2004FinalAsset::addFinalPageItemXML (   $a_writer,
  $a_slm_obj 
)
static

Export page objects of entry asset.

Parameters
int$a_inst
string$a_target_dir
object$expLog
string$a_modeAdd final page item XML to writer

Definition at line 59 of file class.ilSCORM2004FinalAsset.php.

{
$a_writer->xmlStartTag("item", array(
"identifier" => "il_".IL_INST_ID."_final_page_".$a_slm_obj->getId(),
"identifierref" => "il_".IL_INST_ID."_final_page_".$a_slm_obj->getId()."_ref",
"isvisible" => false
)
);
$a_writer->xmlElement("title", array(), "Final Page");
$a_writer->xmlElement("imsss:sequencing", array());
$a_writer->xmlEndTag("item");
}
static ilSCORM2004FinalAsset::addFinalPageResourceXML (   $a_writer,
  $a_slm_obj 
)
static

Add final page resource XML to writer.

Definition at line 75 of file class.ilSCORM2004FinalAsset.php.

{
$a_writer->xmlStartTag("resource", array(
"identifier" => "il_".IL_INST_ID."_final_page_".$a_slm_obj->getId()."_ref",
"type" => "webcontent",
"adlcp:scormType" => "asset",
"href" => "final_page/index.html"
)
);
$a_writer->xmlEndTag("resource");
}
ilSCORM2004FinalAsset::exportScorm (   $a_inst,
  $a_target_dir,
$expLog 
)

Export special item to scorm.

Definition at line 29 of file class.ilSCORM2004FinalAsset.php.

References ilSCORM2004Asset\exportHTML(), and ilUtil\makeDir().

{
ilUtil::makeDir($a_target_dir.'/final_page');
$a_target_dir = $a_target_dir.'/final_page';
$this->exportHTML($a_inst, $a_target_dir, $expLog, "final_asset");
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: