private static function drupalchatController::_drupalchat_buddylist_diff in DrupalChat 8
1 call to drupalchatController::_drupalchat_buddylist_diff()
- drupalchatController::drupalchat_poll in src/
Controller/ drupalchatController.php - Process and get messages
File
- src/
Controller/ drupalchatController.php, line 297 - Contains Drupal\drupalchat\Controller\drupalchatController
Class
Namespace
Drupal\drupalchat\ControllerCode
private static function _drupalchat_buddylist_diff($ar1, $ar2) {
if ($ar1['total'] != $ar2['total']) {
return FALSE;
}
foreach ($ar1 as $key => $value) {
if (!isset($ar2[$key])) {
return FALSE;
}
if ($value['status'] != $ar2[$key]['status']) {
return FALSE;
}
}
return TRUE;
}