DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

The Javascript logicΒΆ

In the whole logic of the javascript frontend is located in the object GlPairs. We are using additional libraries like jQuery and Bootstrap. In the beginning it is retrieving all necessary data with an ajax call to the AjaxDispatcher.

var strGetParams = jQuery.param({    controllerName : 'Pairs',
                        actionName      : 'ajaxBasicData',
                        actionArguments : { i_strUniquId :     m_strPairsId }
                    });

It is calling the ajaxBasicData action in the Pairs action controller PairsController->ajaxBasicDataAction().

After it has all data it controls all the animations of the cards and the points of the game.