24 return $this->
if->identifier(
'awareness');
33 return [$this->
getId()];
51 $cache_period = (int) $awrn_set->get(
"caching_period");
56 $act->setRefId((
int)
$_GET[
"ref_id"]);
57 if ($last_update ==
"" || ($now - $last_update) >= $cache_period) {
58 $cnt = explode(
":", $act->getAwarenessUserCounter());
61 $act->notifyOnNewOnlineContacts();
72 $result = $gui->getAwarenessList(
true);
74 $content =
function () use (
$result) {
76 return $this->dic->ui()->factory()->legacy(
$result[
"html"]);
81 $f = $DIC->ui()->factory();
83 $online = explode(
":",
$result[
"cnt"]);
87 ->topLegacyItem($this->
getId())
89 if ($c instanceof
BulkyButton || $c instanceof BulkyLink) {
90 return $c->withAdditionalOnLoadCode(
static function (
string $id) :
string {
91 return "$('#$id').on('click', function() { 92 console.log('trigger awareness slate'); 98 ->withLegacyContent($content())
100 $this->dic->ui()->factory()
104 ->withCounter(
$f->counter()->status((
int) $cnt))
105 ->withCounter(
$f->counter()->novelty((
int) $hcnt))
107 ->withTitle($this->dic->language()->txt(
"awra"))
109 ->withAvailableCallable(
110 function () use ($DIC, $online) {
static getInstance($a_user_id)
Get instance (for a user)
Class ChatMainBarProvider .
Interface IdentificationInterface.
static get($a_var)
Get a value.
static set($a_var, $a_val)
Set a value.
withSymbol(Symbol $symbol)