kaffa / textpattern

Automatically exported from code.google.com/p/textpattern
0 stars 0 forks source link

Callback handling - checking, detecting, unbinding #336

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The main and best thing about Textpattern, callbacks, currently doesn't offer a 
way to check if something has been attached to a specific event or what these 
handlers are even.

The callbacks and event handling could be extended with few supporting 
functions. Main things would be:

* Ability to see if something has been attached to a specific event+step+pre 
combination.
* Potentially then even listing those callbacks in a string representation or 
in original format.
* And lastly potential unbinding option. PHP doesn't make it the easiest task 
tho.

In other words functions such as:

* callback_handlers() - lists handlers
* callback_off() - removes a handler
* event_has_hanlers() - tests if the callback has members

Original issue reported on code.google.com by jukka.m.svahn on 6 Dec 2012 at 7:41

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r4945.

Original comment by jukka.m.svahn on 6 Dec 2012 at 8:28