ILIAS
Release_5_0_x_branch Revision 61816
|
SCORM 13 Metadata importer. More...
Public Member Functions | |
__construct ($a_manifest_dom, $a_obj_id) | |
Constructor. | |
setTitle ($a_val) | |
Set title. | |
getTitle () | |
Get title. | |
setDescription ($a_val) | |
Set description. | |
getDescription () | |
Get description. | |
import () | |
Import. | |
handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
handler for begin of element | |
handlerEndTag ($a_xml_parser, $a_name) | |
handler for end of element | |
in ($a_name) | |
Public Member Functions inherited from ilMDXMLCopier | |
ilMDXMLCopier ($content, $a_rbac_id, $a_obj_id, $a_obj_type) | |
setHandlers ($a_xml_parser) | |
set event handlers | |
handlerCharacterData ($a_xml_parser, $a_data) | |
handler for character data | |
__setFilter () | |
__inFilter ($a_tag_name) | |
Public Member Functions inherited from ilMDSaxParser | |
ilMDSaxParser ($a_xml_file= '') | |
Constructor. | |
enableMDParsing ($a_status) | |
getMDParsingStatus () | |
setMDObject (&$md) | |
& | getMDObject () |
inMetaData () | |
__getCharacterData () | |
__pushParent (&$md_obj) | |
& | __popParent () |
& | __getParent () |
ilMDSaxParser ($a_xml_file= '') | |
Constructor. | |
setMDObject (&$md) | |
inMetaData () | |
__getCharacterData () | |
__pushParent (&$md_obj) | |
& | __popParent () |
& | __getParent () |
Public Member Functions inherited from ilSaxParser | |
ilSaxParser ($a_xml_file= '', $throwException=false) | |
Constructor setup ILIAS global object public. | |
setXMLContent ($a_xml_content) | |
getXMLContent () | |
getInputType () | |
startParsing () | |
stores xml data in array | |
createParser () | |
create parser | |
setOptions ($a_xml_parser) | |
set parser options | |
openXMLFile () | |
open xml file | |
parse ($a_xml_parser, $a_fp=null) | |
parse xml file | |
freeParser ($a_xml_parser) | |
free xml parser handle | |
setThrowException ($throwException) | |
set error handling | |
Public Member Functions inherited from PEAR | |
PEAR ($error_class=null) | |
Constructor. | |
_PEAR () | |
Destructor (the emulated type of...). | |
& | getStaticProperty ($class, $var) |
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. | |
registerShutdownFunc ($func, $args=array()) | |
Use this function to register a shutdown method for static classes. | |
isError ($data, $code=null) | |
Tell whether a value is a PEAR error. | |
setErrorHandling ($mode=null, $options=null) | |
Sets how errors generated by this object should be handled. | |
expectError ($code= '*') | |
This method is used to tell which errors you expect to get. | |
popExpect () | |
This method pops one element off the expected error codes stack. | |
_checkDelExpect ($error_code) | |
This method checks unsets an error code if available. | |
delExpect ($error_code) | |
This method deletes all occurences of the specified element from the expected error codes stack. | |
& | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. | |
& | throwError ($message=null, $code=null, $userinfo=null) |
Simpler form of raiseError with fewer options. | |
staticPushErrorHandling ($mode, $options=null) | |
staticPopErrorHandling () | |
pushErrorHandling ($mode, $options=null) | |
Push a new error handler on top of the error handler options stack. | |
popErrorHandling () | |
Pop the last error handler used. | |
loadExtension ($ext) | |
OS independant PHP extension load. |
Protected Attributes | |
$manifest_dom | |
$metadata_found = false | |
$path = array() | |
$title = "" | |
$description = "" |
Additional Inherited Members | |
Data Fields inherited from ilMDXMLCopier | |
$filter = array() | |
Protected Member Functions inherited from ilSaxParser | |
handleError ($message, $code) | |
use given error handler to handle error message or internal ilias error message handle |
SCORM 13 Metadata importer.
Definition at line 14 of file class.ilSCORM13MDImporter.php.
ilSCORM13MDImporter::__construct | ( | $a_manifest_dom, | |
$a_obj_id | |||
) |
Constructor.
@return |
Definition at line 28 of file class.ilSCORM13MDImporter.php.
References $path, and ilObject\_lookupType().
ilSCORM13MDImporter::getDescription | ( | ) |
Get description.
Definition at line 80 of file class.ilSCORM13MDImporter.php.
References $description.
Referenced by handlerEndTag().
ilSCORM13MDImporter::getTitle | ( | ) |
Get title.
Definition at line 60 of file class.ilSCORM13MDImporter.php.
References $title.
Referenced by handlerEndTag().
ilSCORM13MDImporter::handlerBeginTag | ( | $a_xml_parser, | |
$a_name, | |||
$a_attribs | |||
) |
handler for begin of element
Reimplemented from ilMDXMLCopier.
Definition at line 103 of file class.ilSCORM13MDImporter.php.
References ilMDSaxParser\__getParent(), ilMDSaxParser\__pushParent(), ilMDSaxParser\getMDParsingStatus(), and in().
ilSCORM13MDImporter::handlerEndTag | ( | $a_xml_parser, | |
$a_name | |||
) |
handler for end of element
Reimplemented from ilMDXMLCopier.
Definition at line 430 of file class.ilSCORM13MDImporter.php.
References ilMDSaxParser\__getCharacterData(), ilMDSaxParser\__getParent(), ilMDSaxParser\__popParent(), getDescription(), ilMDSaxParser\getMDParsingStatus(), getTitle(), in(), setDescription(), and setTitle().
ilSCORM13MDImporter::import | ( | ) |
Import.
@return |
Definition at line 91 of file class.ilSCORM13MDImporter.php.
References ilMDSaxParser\getMDObject(), and ilSaxParser\startParsing().
ilSCORM13MDImporter::in | ( | $a_name | ) |
@return |
Definition at line 786 of file class.ilSCORM13MDImporter.php.
Referenced by handlerBeginTag(), and handlerEndTag().
ilSCORM13MDImporter::setDescription | ( | $a_val | ) |
Set description.
string | $a_val | description |
Definition at line 70 of file class.ilSCORM13MDImporter.php.
Referenced by handlerEndTag().
ilSCORM13MDImporter::setTitle | ( | $a_val | ) |
Set title.
string | $a_val | title |
Definition at line 50 of file class.ilSCORM13MDImporter.php.
Referenced by handlerEndTag().
|
protected |
Definition at line 20 of file class.ilSCORM13MDImporter.php.
Referenced by getDescription().
|
protected |
Definition at line 16 of file class.ilSCORM13MDImporter.php.
|
protected |
Definition at line 17 of file class.ilSCORM13MDImporter.php.
|
protected |
Definition at line 18 of file class.ilSCORM13MDImporter.php.
Referenced by __construct().
|
protected |
Definition at line 19 of file class.ilSCORM13MDImporter.php.
Referenced by getTitle().