Ticket #62 (closed enhancement: fixed)

Opened 3 years ago

Last modified 5 months ago

Find a way to register new PHP callbacks in XSL templates

Reported by: schst Owned by: 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

Changed 3 years ago by mikey

Postponed until ticket #40 is resolved.

Changed 3 years ago by mikey

  • status changed from new to assigned

Changed 3 years ago by mikey

This ticket requires ticket #80 to be resolved.

Changed 3 years ago by mikey

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

Fixed with changeset 878.

Changed 3 years ago 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.

Changed 3 years ago 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.

Note: See TracTickets for help on using tickets.