Feature #35

Methods - Allow applications to export methods

Added by the Mage almost 2 years ago. Updated almost 2 years ago.

Status:Closed Start:Feb 16, 2010
Priority:Normal Due date:
Assigned to:the Mage % Done:

100%

Category:- Spent time: -
Target version:v0.1.11

Description

Allow applications to export methods.

Any method only can be exported by one application at any given time.

While handlers are expected to work well in sequence, methods are expected to return results of their process, as if they era real MFWork methods.

An example of a method call would be:


my $url='http://www.verylongurl.com/that/you-may-want-to/share';
if ($mf->know('make_short_url')) {
   $url=$mf->call('make_short_url', url=>$url);
}
How this relates to handlers and modules:
  • Handlers : Handlers are expected to modify the data they get, but they are usually expected to generate new data or content. Methods are expected to do everything they need to do in order to implement what's expected of they. In the example above it is expected that the method will create a new record somewhere, that allow the application implementing the method to redirect the used going to the returned URL to be sent to the original URL.
  • Modules : modules are used to generate content to complet the pages where they are called.

Related issues

blocks Short URLs - Feature #37: Method add link Closed Feb 16, 2010
blocks Short URLs - Feature #38: Method: link stats New Feb 16, 2010

Associated revisions

Revision 129064d2fd5b3b11241c1deee2fa889f12351afd
Added by Merlin, theMage almost 2 years ago

Implements methods and fixes small bugs

  • fixes:35
  • fixes a few small bugs found while implementing methods.

themage

Revision cb992b45cf53ee8eb3a2b44e1cb4c5ef37a05af5
Added by Merlin, theMage almost 2 years ago

Just some indent to close the ticket.

fixes:35

themage

History

Updated by Anonymous almost 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Updated by Anonymous almost 2 years ago

Updated by the Mage almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF