method addAdmin documentation in bbn\Appui\Chat

function(string $id_chat, string $id_user) { if ($this->check() && bbn\Str::isUid($id_chat) && bbn\Str::isUid($id_user) && $this->isCreator($id_chat) && ($name = $this->user->getName()) && ($name2 = $this->user->getName($id_user)) ) { return $this->_set_admin( $id_chat, $id_user, true, [ $this->user->getId() => X::_('You set') . " $name2 " . X::_('as admin'), $id_user => "$name " . X::_('set you as admin'), "$name " . X::_('set') . " $name2 " . X::_('as admin') ] ); } return null; }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.