From a22ec8cbfa5ec424cce751e194943328a16c1eec Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 4 Jul 2014 20:34:34 -0700 Subject: doc updates --- doc/html/ping_8php.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'doc/html/ping_8php.html') diff --git a/doc/html/ping_8php.html b/doc/html/ping_8php.html index 0e34df51f..eb295fb35 100644 --- a/doc/html/ping_8php.html +++ b/doc/html/ping_8php.html @@ -113,6 +113,7 @@ $(document).ready(function(){initNavTree('ping_8php.html','');});

Functions

 ping_init (&$a) + do several updates when pinged. More...
 

Function Documentation

@@ -130,6 +131,24 @@ Functions
+

do several updates when pinged.

+

This function does several tasks. Whenever called it checks for new messages, introductions, notifications, etc. and returns a json with the results.

+
Parameters
+ + +
App&$a
+
+
+
Returns
JSON
+

If you have several windows open to this site and switch to a different channel in one of them, the others may get into a confused state showing you a page or options on that page which were only valid under the old identity. You session has changed. Therefore we send a notification of this fact back to the browser where it is picked up in javascript and which reloads the page it is on so that it is valid under the context of the now current channel.

+

Send all system messages (alerts) to the browser. Some are marked as informational and some represent errors or serious notifications. These typically will popup on the current page (no matter what page it is)

+

Update chat presence indication (if applicable)

+

Chatpresence continued... if somebody hasn't pinged recently, they've most likely left the page and shouldn't count as online anymore. We allow an expection for bots.

+

Everything following is only permitted under the context of a locally authenticated site member.

+

Handle "mark all xyz notifications read" requests.

+

URL ping/something will return detail for "something", e.g. a json list with which to populate a notification dropdown menu.

+

Normal ping - just the counts, no detail

+
-- cgit v1.2.3