ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSCORM2004EntryAsset Class Reference

Entry page asset. More...

+ Inheritance diagram for ilSCORM2004EntryAsset:
+ Collaboration diagram for ilSCORM2004EntryAsset:

Public Member Functions

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

Static Public Member Functions

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

Additional Inherited Members

- Data Fields inherited from ilSCORM2004Asset
 $q_media = null
 
- Data Fields inherited from ilSCORM2004Node
 $slm_id
 
 $type
 
 $id
 
 $slm_object
 

Detailed Description

Entry 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.ilSCORM2004EntryAsset.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORM2004EntryAsset::__construct (   $a_slm_object)

Constructor.

Parameters
objectSCORM LM object

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

References ilSCORM2004Node\setType().

21  {
22  parent::ilSCORM2004Node($a_slm_object);
23  $this->setType("ass");
24  }
setType($a_type)
Set type.
+ Here is the call graph for this function:

Member Function Documentation

◆ addEntryPageItemXML()

static ilSCORM2004EntryAsset::addEntryPageItemXML (   $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 entry page item XML to writer

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

60  {
61  $a_writer->xmlStartTag("item", array(
62  "identifier" => "il_".IL_INST_ID."_entry_page_".$a_slm_obj->getId(),
63  "identifierref" => "il_".IL_INST_ID."_entry_page_".$a_slm_obj->getId()."_ref",
64  "isvisible" => false
65  )
66  );
67  $a_writer->xmlElement("title", array(), "Entry Page");
68  $a_writer->xmlElement("imsss:sequencing", array());
69  $a_writer->xmlEndTag("item");
70  }

◆ addEntryPageResourceXML()

static ilSCORM2004EntryAsset::addEntryPageResourceXML (   $a_writer,
  $a_slm_obj 
)
static

Add entry page resource XML to writer.

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

76  {
77  $a_writer->xmlStartTag("resource", array(
78  "identifier" => "il_".IL_INST_ID."_entry_page_".$a_slm_obj->getId()."_ref",
79  "type" => "webcontent",
80  "adlcp:scormType" => "asset",
81  "href" => "entry_page/index.html"
82  )
83  );
84  $a_writer->xmlEndTag("resource");
85  }

◆ exportScorm()

ilSCORM2004EntryAsset::exportScorm (   $a_inst,
  $a_target_dir,
$expLog 
)

Export special item to scorm.

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

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

30  {
31  ilUtil::makeDir($a_target_dir.'/entry_page');
32 
33  $a_target_dir = $a_target_dir.'/entry_page';
34 
35  $this->exportHTML($a_inst, $a_target_dir, $expLog, "entry_asset");
36  }
exportHTML($a_inst, $a_target_dir, &$expLog, $a_asset_type="sco", $a_one_file="")
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
+ Here is the call graph for this function:

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