Introduction
Palrelay application development is very similar to writing a normal web application with special events triggers. You do not need to write any membership handling code as this is done for you with the API class. The running context of the PHP class will hold the current user and their browsing session for you.
Requirements
PHP 5+
Mysql 5+
API Class
Class PalRelay (PHP)
Methods
Constructor()
Send()
ControlBuffer()
LoadScript()
SetDefaultControl()
IsFreshRequest()
IsListenRequest()
GetMemory()
SetMemory()
GetUserLastNotifyTime()
GetUserId()
GetUserAuth()
GetUrl()
GetPageTitle()
GetPageKeywords()
SelectedControl()
GetBuffer()
JsHelper()
Redirect()
GotoConfig()
FriendRequest()
GetFriends()
IsFriendOf()
SetNotice()
GetUsername()
GetProfileImage()
Send()
ControlBuffer()
LoadScript()
SetDefaultControl()
IsFreshRequest()
IsListenRequest()
GetMemory()
SetMemory()
GetUserLastNotifyTime()
GetUserId()
GetUserAuth()
GetUrl()
GetPageTitle()
GetPageKeywords()
SelectedControl()
GetBuffer()
JsHelper()
Redirect()
GotoConfig()
FriendRequest()
GetFriends()
IsFriendOf()
SetNotice()
GetUsername()
GetProfileImage()
Class PalRelay (JavaScript)
There is also a special JavaScript function which can be used in the PalRelay console PalRelayPush
Another unique feature to PalRelay applications is the ability for controls to be Interactive
Getting Started
Download the application API here
The first thing required for a PalRelay application is a local database for the class to manage your users. You will find a file called "database.sql" in the zip archive use this to setup the database tables. You can also use this database for additional tables your application may require. This database holds your users primary id which can be fetched with GetUserId() to use as a index with your other tables.
The next thing to do is upload the contents of YourApplication to your webhost where you will want your application to run. You will also see "setup/index.php" has been included inside YourApplication folder this is not to do with seting up the application from a developer view. This file is called when a PalRelay user installs your application and goes to your applications configuration. At this point you can use the PalRelay class for the user and will be able to use the persistent SetMemory() & GetMemory() methods
Now you need to register your application with PalRelay so you can install your application and start developing.
Once you have registered your application you will be given a secret code. This is to be used with your applications name with the class Constructor().
To install your application into your PalRelay applications click on the PalRelay icon then click "Applications" in the search box enter ::[APPNAME]:: (eg ::MyApp::) this will show you your application so you can install it. Anyone can install your application this way so you can have multiple users testing it.
When your application is ready to be approved you can request a approval here. You can also pull your application from the same area. This wont remove it from other PalRelay users it will prevent new users from being able to install. However your application will need to be approved again.
There are no comments on this page. [Add comment]