php man page for xslt_set_object

Query: xslt_set_object

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

XSLT_SET_OBJECT(3)							 1							XSLT_SET_OBJECT(3)

xslt_set_object - Sets the object in which to resolve callback functions

SYNOPSIS
bool xslt_set_object (resource $processor, object &$obj)
DESCRIPTION
This function allows to use the $processor inside an $object and to resolve all callback functions in it. The callback functions can be declared with xslt_set_sax_handlers(3), xslt_set_scheme_handlers(3) or xslt_set_error_handler(3) and are assumed to be methods of $object.
PARAMETERS
o $ processor -The XSLT processor link identifier, created with xslt_create(3). o $obj - An object.
RETURN VALUES
Returns TRUE on success or FALSE on failure. Example #1 Using your own error handler as a method <?php class my_xslt_processor { var $_xh; // our XSLT processor function my_xslt_processor() { $this->_xh = xslt_create(); // Make $this object the callback resolver xslt_set_object($this->_xh, $this); // Let's handle the errors xslt_set_error_handler($this->_xh, "my_xslt_error_handler"); } function my_xslt_error_handler($handler, $errno, $level, $info) { // for now, let's just see the arguments var_dump(func_get_args()); } } ?> PHP Documentation Group XSLT_SET_OBJECT(3)
Related Man Pages
is_object(3) - php
sybase_set_message_handler(3) - php
xml_set_object(3) - php
xslt_set_error_handler(3) - php
xslt_set_scheme_handlers(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
UNIX.COM 2017 Year End Summary
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
Please Welcome Don Cragun as Lead Moderator
Please Welcome Nicki Paul to the Moderator Team!