note 45611 added to function.xslt-set-scheme-handlers
| From: | cchittleborough at cluemail dot com | Date: | Mon, 13 Sep 2004 01:36:06 +0000 |
| Subject: | note 45611 added to function.xslt-set-scheme-handlers | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76569@lists.php.net to get a copy of this message | ||
Here's some useful information I found in the PHP 4.3.4 source (in the file
ext/xslt/README.XSLT-BACKENDS):
void xslt_set_scheme_handlers(resource processor, array handlers)
Registers the scheme handlers for the document (aka XPath handlers), given a XSLT processor resource
(allocated by xslt_create()) and an array in the following format:
array(
"get_all" => function,
"open" => function,
"get" => function,
"put" => function,
"close" => function
)
Where function is either a function name or an array in the following format:
array(&$obj, "method")
Note: You do not need to handle the array(&$obj, method") syntax by yourself as this is
handled in the C call_xslt_function() library function (and more specifically, Zend's
call_user_function_ex() function.
Note: The given array does not need to contain all of the different scheme handler elements
(although it can), but it only needs to conform to the "handler" =>
"function" format described above.
Each of the individual scheme handler functions called are in the formats below:
string get_all(resource processor, string scheme, string rest)
resource open(resource processor, string scheme, string rest)
int get(resource processor, resource fp, string &data)
int put(resource processor, resource fp, string data)
void close(resource processor, resource fp)
----
Manual Page -- http://www.php.net/manual/en/function.xslt-set-scheme-handlers.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45611
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45611&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45611&report=yes
Search -- http://master.php.net/manage/user-notes.php