Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1225

Add callback support for "AjaxFormHelper::transitEvent" method

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.2.1-B2
    • Component/s: Front End
    • Labels:
      None

      Description

      Class AjaxFormHelper is used to transform even result into a valid JSON response, that later can be processed by FormManager class (in JavaScript), that originally was used to issue that even call, that invoked AjaxFormHelper in first place.

      Main method in that class is transitEvent and after using it for a while we developed a few additions to it, that might come in handy:

      • closure support - ability to specify PHP 5.3+ closure, that would be called after event was executed, but before output is sent out in JSON format
      • return event status - return event invocation status to code, where transitEvent method was used

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: