ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilXML2FO Class Reference
+ Inheritance diagram for ilXML2FO:
+ Collaboration diagram for ilXML2FO:

Public Member Functions

 ilXML2FO ()
 setXMLString ($a_xml)
 getXMLString ()
 setXSLTLocation ($xslt_location)
 getXSLTLocation ()
 getFOString ()
 setXSLTParams ($params)
 getXSLTParams ()
 transform ()
 __init ()

Data Fields

 $xslt = null
 $xml = null
 $fo_string = null
 $xslt_handler = null
 $xslt_args = null
 $xslt_params = null

Detailed Description

Definition at line 34 of file class.ilXML2FO.php.

Member Function Documentation

ilXML2FO::__init ( )

Definition at line 102 of file class.ilXML2FO.php.

References getXMLString(), getXSLTLocation(), and xslt_create().

Referenced by transform().

{
#domxml_open_mem($this->getXMLString(), DOMXML_LOAD_VALIDATING, $error);
#if($error)
#{
# var_dump("<pre>","XML ERROR: ".$error,htmlentities($this->getXMLString()),"<pre>");
#}
$this->xslt_handler = xslt_create();
$this->xslt_args = array('/_xml' => $this->getXMLString(),
'/_xsl' => file_get_contents($this->getXSLTLocation()));
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilXML2FO::getFOString ( )

Definition at line 64 of file class.ilXML2FO.php.

References $fo_string.

{
}
ilXML2FO::getXMLString ( )

Definition at line 52 of file class.ilXML2FO.php.

References $xml.

Referenced by __init().

{
return $this->xml;
}

+ Here is the caller graph for this function:

ilXML2FO::getXSLTLocation ( )

Definition at line 60 of file class.ilXML2FO.php.

References $xslt.

Referenced by __init().

{
return $this->xslt;
}

+ Here is the caller graph for this function:

ilXML2FO::getXSLTParams ( )

Definition at line 72 of file class.ilXML2FO.php.

References $xslt_params.

{
}
ilXML2FO::ilXML2FO ( )

Definition at line 43 of file class.ilXML2FO.php.

Referenced by ilContentObject2FO\ilContentObject2FO().

{
}

+ Here is the caller graph for this function:

ilXML2FO::setXMLString (   $a_xml)

Definition at line 48 of file class.ilXML2FO.php.

{
$this->xml = $a_xml;
}
ilXML2FO::setXSLTLocation (   $xslt_location)

Definition at line 56 of file class.ilXML2FO.php.

Referenced by ilContentObject2FO\ilContentObject2FO().

{
$this->xslt = $xslt_location;
}

+ Here is the caller graph for this function:

ilXML2FO::setXSLTParams (   $params)

Definition at line 68 of file class.ilXML2FO.php.

{
$this->xslt_params = $params;
}
ilXML2FO::transform ( )

Definition at line 76 of file class.ilXML2FO.php.

References $ilLog, __init(), xslt_error(), xslt_free(), and xslt_process().

{
global $ilLog;
$this->__init();
$this->fo_string = @xslt_process($this->xslt_handler,
"arg:/_xml",
"arg:/_xsl",
null,
$this->xslt_args,
$this->xslt_params);
if(strlen($error_msg = xslt_error($this->xslt_handler)))
{
$ilLog->write("Error generating pdf: ".$error_msg);
return false;
}
xslt_free($this->xslt_handler);
return true;
}

+ Here is the call graph for this function:

Field Documentation

ilXML2FO::$fo_string = null

Definition at line 38 of file class.ilXML2FO.php.

Referenced by getFOString().

ilXML2FO::$xml = null

Definition at line 37 of file class.ilXML2FO.php.

Referenced by getXMLString().

ilXML2FO::$xslt = null

Definition at line 36 of file class.ilXML2FO.php.

Referenced by getXSLTLocation().

ilXML2FO::$xslt_args = null

Definition at line 41 of file class.ilXML2FO.php.

ilXML2FO::$xslt_handler = null

Definition at line 40 of file class.ilXML2FO.php.

ilXML2FO::$xslt_params = null

Definition at line 42 of file class.ilXML2FO.php.

Referenced by getXSLTParams().


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