Ticket #62 (closed enhancement: fixed)

Opened 1 year ago

Last modified 9 months ago

Find a way to register new PHP callbacks in XSL templates

Reported by: schst Assigned to: mikey
Priority: minor Milestone: 0.3.0
Component: XML/XSL view engine Version: SVN-trunk
Keywords: Cc:

Description

Currently it is not possible to register new PHP callbacks without extending the XSL post processor.

This should be configurable.

Change History

08/15/07 16:37:01 changed by mikey

Postponed until ticket #40 is resolved.

08/21/07 17:17:39 changed by mikey

  • status changed from new to assigned.

08/21/07 23:44:57 changed by mikey

This ticket requires ticket #80 to be resolved.

08/22/07 17:59:10 changed by mikey

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed with changeset 878.

08/22/07 18:04:33 changed by mikey

To configure the callbacks used within the XML/XSL post processor the file config/xsl-callbacks.ini needs to be edited. One line denotes one callback where the key is the id with which the callback may be called from within the XSL template while the value references the full qualified class name of the class which contains the callback method to be called for this callback. The XML/XSL post processor now required that in instance of net.stubbles.ioc.stubBinder is available in the registry under the key net.stubbles.ioc.stubBinder. If the ini file or this instance is missing the post interceptor will throw a stubException during runtime.

08/22/07 18:05:56 changed by mikey

When adding classes to the ini file that have dependencies on other classes which needs to be injected into the desired class these dependencies should be configured in the stubBinder instance within a separate pre or post interceptor.