Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct () | |
_transformExternal ($xml, $xmlType, $xsl, $xslType, $resultType) | |
_transformPHP ($xml, $xmlType, $xsl, $xslType, $resultType) | |
addError ($error) | |
setParameters ($parameters) | |
setRegisterPHPFunctions ($flag) | |
transform ($xml, $xmlType, $xsl, $xslType, $resultType) | |
transformFiles ($xmlFile, $xslFile) | |
transformStrings ($xml, $xsl) | |
Static Public Member Functions | |
static | checkSupport () |
static | getProcessor () |
Data Fields | |
$errors | |
$parameters | |
$registerPHPFunctions | |
Static Public Attributes | |
static | $externalCommand |
static | $externalParameterSnippet |
static | $processor |
Wrapper class for running XSL transformations using PHP 4.x or 5.x.
Definition at line 24 of file XSLTransformer.inc.php.
XSLTransformer::__construct | ( | ) |
Constructor. Initialize transformer and set parser options.
Definition at line 67 of file XSLTransformer.inc.php.
References checkSupport().
XSLTransformer::_transformExternal | ( | $xml, | |
$xmlType, | |||
$xsl, | |||
$xslType, | |||
$resultType | |||
) |
Use external programs to do the XSL transformation
$xml | mixed |
$xmlType | integer |
$xsl | mixed |
$xslType | integer |
$resultType | integer XSL_TRANSFORMER_DOCTYPE_... |
Definition at line 200 of file XSLTransformer.inc.php.
References addError().
Referenced by transform().
XSLTransformer::_transformPHP | ( | $xml, | |
$xmlType, | |||
$xsl, | |||
$xslType, | |||
$resultType | |||
) |
Use PHP5's DOMDocument and XSLTProcessor to do the transformation
$xml | mixed |
$xmlType | integer |
$xsl | mixed |
$xslType | integer |
$resultType | integer XSL_TRANSFORMER_DOCTYPE_... |
Definition at line 266 of file XSLTransformer.inc.php.
References $processor.
Referenced by transform().
XSLTransformer::addError | ( | $error | ) |
Add an error to the current error list
$error | string |
Definition at line 362 of file XSLTransformer.inc.php.
Referenced by _transformExternal().
|
static |
Fetch configuration and check whether XSLT is properly supported.
Definition at line 78 of file XSLTransformer.inc.php.
References Config\getVar().
Referenced by __construct(), and InstallForm\display().
|
static |
Get the processor type
Definition at line 107 of file XSLTransformer.inc.php.
References $processor.
XSLTransformer::setParameters | ( | $parameters | ) |
Set the parameter list for internal processors.
$parameters | array |
Definition at line 115 of file XSLTransformer.inc.php.
References $parameters.
XSLTransformer::setRegisterPHPFunctions | ( | $flag | ) |
Set the registerPHPFunctions setting on or off.
$flag | boolean |
Definition at line 123 of file XSLTransformer.inc.php.
XSLTransformer::transform | ( | $xml, | |
$xmlType, | |||
$xsl, | |||
$xslType, | |||
$resultType | |||
) |
Apply an XSLT transform to a given XML and XSL. Both parameters can be either strings, files or DOM objects.
$xml | mixed |
$xmlType | integer |
$xsl | mixed |
$xslType | integer |
$resultType | integer XSL_TRANSFORMER_DOCTYPE_... |
Definition at line 161 of file XSLTransformer.inc.php.
References _transformExternal(), and _transformPHP().
Referenced by transformFiles(), and transformStrings().
XSLTransformer::transformFiles | ( | $xmlFile, | |
$xslFile | |||
) |
Apply an XSLT transform to a given XML and XSL source files
$xmlFile | string absolute pathname to the XML source file |
$xslFile | string absolute pathname to the XSL stylesheet |
Definition at line 135 of file XSLTransformer.inc.php.
References transform().
XSLTransformer::transformStrings | ( | $xml, | |
$xsl | |||
) |
Apply an XSLT transform to a given XML and XSL strings
$xml | string containing source XML |
$xsl | string containing source XSL |
Definition at line 145 of file XSLTransformer.inc.php.
References transform().
array XSLTransformer::$errors |
List of error strings
Definition at line 60 of file XSLTransformer.inc.php.
|
static |
containing external XSLT shell command
Definition at line 36 of file XSLTransformer.inc.php.
|
static |
containing external XSLT shell arguments for parameters
Definition at line 42 of file XSLTransformer.inc.php.
array XSLTransformer::$parameters |
of parameters to pass to XSL (built-in libraries only)
Definition at line 48 of file XSLTransformer.inc.php.
Referenced by setParameters().
|
static |
determining the XSLT processor to use for this object
Definition at line 30 of file XSLTransformer.inc.php.
Referenced by _transformPHP(), and getProcessor().
array XSLTransformer::$registerPHPFunctions |
of PHP functions to allow in XSL (PHP5 built-in only)
Definition at line 54 of file XSLTransformer.inc.php.