note 45611 deleted from function.xslt-set-scheme-handlers by didou

From: Date: Mon, 31 Dec 2007 01:26:57 +0000
Subject: note 45611 deleted from function.xslt-set-scheme-handlers by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134580@lists.php.net to get a copy of this message
Note Submitter: cchittleborough at cluemail dot com ---- 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)

« previous php.notes (#134580) next »