|
APIStructure
How JConnect ExApp API is Organized
How JConnect ExApp API is OrganizedThis is the place where we are going to say about how ExApp API is organized and what are things(Classes,Files) you need to consider about. Folder Stucture
we are only using directly bolded files only. API Insidelet's have a look at that bolded files... server.phpThis is the actual server for communication and you should point the path of this file when configuring ExApp in the JConnect Management Console. eg:-if this file resides in http://host/mod/jconnect_api/server.php ; then the path is /mod/jconnect_api/server.php. and this is one of the very important place in the API. lib.phpThis is the files which contains the most-important class(JCFactory) you will be used and the skeleton of methods you are going to implement... Classes
this is the class you'll be used always in the application to get the references of both Joomla and JConnect, plus all the configuration stuff is done on this.. this is the class you'll be extend and implement methods for allow Joomla to do user-sync (part of the Joomla Requesting Communication). this is the class will be extends and implement it's methods for Joomla to send some communication info for exApp and get the views for Activity Module. this is the class will be extends and implement it's methods for successfully done the Authentication and SSO extend and implement methods of this class is Optional. This will help you do authentication more securely. setting.phpThis is the place all you done the configuration stuff. They'll be
examples:-
JCFactory::register('secKey','YO1iSVUL3rRf2d3lls5OAlxyyP4332Lwd::91WxORBfNLnuYWx3SdMssXVx4'));
JCFactory::register('appName','FakeExApp');
include_once dirname(dirname(__FILE__)).'/impl/userSync.php';
/**
JCElggUserSync is the extended class of JCUserSync and above line will include that class
*/
JCFactory::register('userSync',new JCElggUserSync());
api.phpThis is file you are including to your application and get the references of JConnect and Joomla. Other files and foldersThe following files and folders are containing some external libraries and some core files of the API. And you never won't those files directly.
|
Sign in to add a comment