note 101092 added to xsltprocessor.registerphpfunctions

From: Date: Thu, 25 Nov 2010 16:34:06 +0000
Subject: note 101092 added to xsltprocessor.registerphpfunctions
Groups: php.notes 
Request: Send a blank email to php-notes+get-174357@lists.php.net to get a copy of this message
=> there is no instance of your class needed, you have to take care about the namespace (using 5.3). <!-- xsl: <xsl:value-of select="php:function ('My\Name\Space\MyClassName::methodName',1+2)"/> ---> <?php namespace My\Name\Space; class MyClassName { static public function methodName($someArgument) { return "resultis:".$someArgument; } } ?> <!-- result: resultis:3 --> => no to-string conversion of the argument needed => returning numbers is also possible (maybe DOM nodes too) Keep on hackin' ---- Server IP: 217.160.235.204 Probable Submitter: 78.46.36.98 ---- Manual Page -- http://www.php.net/manual/en/xsltprocessor.registerphpfunctions.php Edit -- https://master.php.net/note/edit/101092 Del: integrated -- https://master.php.net/note/delete/101092/integrated Del: useless -- https://master.php.net/note/delete/101092/useless Del: bad code -- https://master.php.net/note/delete/101092/bad+code Del: spam -- https://master.php.net/note/delete/101092/spam Del: non-english -- https://master.php.net/note/delete/101092/non-english Del: in docs -- https://master.php.net/note/delete/101092/in+docs Del: other reasons-- https://master.php.net/note/delete/101092 Reject -- https://master.php.net/note/reject/101092 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174357) next »