aboutsummaryrefslogtreecommitdiff
path: root/demo/components
diff options
context:
space:
mode:
Diffstat (limited to 'demo/components')
-rw-r--r--demo/components/functions.php (renamed from demo/components/class-application.php)3
1 files changed, 3 insertions, 0 deletions
diff --git a/demo/components/class-application.php b/demo/components/functions.php
index 317795d..e3f872a 100644
--- a/demo/components/class-application.php
+++ b/demo/components/functions.php
@@ -2,6 +2,7 @@
/**
* The function returns the current ID.
* Returns zero if no ID is stored.
+* @return integer - ID session.
*/
function GetID() {
// Search current ID...
@@ -21,6 +22,7 @@ function GetID() {
* init or returns zero on failure.
* @param $token - The values of the token.
* @param $bot - Initialized bot.
+* @return string - ID bot session.
*/
function GetSession($token, $bot) {
// Search the old session
@@ -44,6 +46,7 @@ function GetSession($token, $bot) {
* the specified or the next. If any missing ID
* returns the one.
* @param $id - Current ID.
+* @return integer - Next ID.
*/
function SetID($id) {
// Process the specified ID...