- Symphony 2.2.4
-
› assets
11 -
› boot
9 -
› core
22 -
› email-gateways
3 -
› toolkit
67 -
› Unknown
33 - Delegates87
- Deprecated30
Versions
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.10
- 2.7.1
- 2.7.0
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.11
- 2.6.10
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
Options
public class XsltProcess
class.xsltprocess.php #13The XsltProcess class is responsible for taking a chunk of XML and applying an XSLT stylesheet to it. Custom error handlers are used to capture any errors that occurred during this process, and are exposed to the ExceptionHandlers for output.
Methods
boolean __construct(
$xml, $xsl)
The XsltProcess constructor takes a two parameters for the
XML and the XSL and initalises the $this->_xml
and $this->_xsl
.
It checks to see if there is an existing XSLTProcessor
Parameters
Returns
True if there is an existing XsltProcessor class, false otherwise
void __error(
$number, $message, $file, $line, $type)
Writes an error to the $_errors
array, which contains the error information
and some basic debugging information.
Parameters
See Also
array getError(
$all, $rewind)
Provides an Iterator interface to return an error from the $_errors
array. Repeat calls to this function to get all errors
Parameters
Returns
Either an array of error array's or just an error array
boolean isErrors()
Returns boolean if any errors occurred during the transformation.
See Also
static boolean isXSLTProcessorAvailable()
Checks if there is an available XSLTProcessor
Returns
True if there is an existing XsltProcessor class, false otherwise
string process(
$xml, $xsl, $parameters, $register_functions)
This function will take a given XML file, a stylesheet and apply
the transformation. Any errors will call the error function to log
them into the $_errors
array
Parameters
Returns
The string of the resulting transform.
See Also
void trapXMLError(
$errno, $errstr, $errfile, $errline)
A custom error handler especially for XML errors.
See Also
void trapXSLError(
$errno, $errstr, $errfile, $errline)
A custom error handler especially for XSL errors.